Fixed path-related diagnostics bug.
This commit is contained in:
parent
be5ed07c8f
commit
9815f6e3e1
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue