Merge pull request #443 from rad4day/diagnostics-fix
Fixed the Fluxion-Version parameter
This commit is contained in:
commit
5e786ec236
|
@ -20,10 +20,10 @@ if [ ! "$1" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$HEADER_SIZE FLUXION Info"
|
echo "$HEADER_SIZE FLUXION Info"
|
||||||
if [ -f "fluxion" ];then
|
if [ -f "fluxion.sh" ];then
|
||||||
declare -r FLUXIONInfo=($(grep -oE "FLUXION(Version|Revision)=[0-9]+" fluxion))
|
declare -r FLUXIONInfo=($(grep -oE "FLUXION(Version|Revision)=[0-9]+" fluxion.sh))
|
||||||
else
|
else
|
||||||
declare -r FLUXIONInfo=($(grep -oE "FLUXION(Version|Revision)=[0-9]+" ../fluxion))
|
declare -r FLUXIONInfo=($(grep -oE "FLUXION(Version|Revision)=[0-9]+" ../fluxion.sh))
|
||||||
fi
|
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