Fixed path-related diagnostics bug.

This commit is contained in:
Matias Barcenas 2018-01-01 00:56:55 -06:00
parent be5ed07c8f
commit 9815f6e3e1
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,10 @@ if [ ! "$1" ]; then
fi fi
echo "[ FLUXION Info ]" echo "[ FLUXION Info ]"
declare -r FLUXIONInfo=($(grep -oE "FLUXION(Version|Revision)=[0-9]+" fluxion.sh)) if [ -f "./fluxion.sh" ]
then declare -r FLUXIONInfo=($(grep -oE "FLUXION(Version|Revision)=[0-9]+" fluxion.sh))
else declare -r FLUXIONInfo=($(grep -oE "FLUXION(Version|Revision)=[0-9]+" ../fluxion.sh))
fi
echo "FLUXION V${FLUXIONInfo[0]/*=/}.${FLUXIONInfo[1]/*=/}" echo "FLUXION V${FLUXIONInfo[0]/*=/}.${FLUXIONInfo[1]/*=/}"
echo -ne "\n\n" echo -ne "\n\n"