From 002a6f76a56882f2df22436ddff275780b331163 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Thu, 5 Apr 2018 09:14:29 +0200 Subject: [PATCH] Fixed the Fluxion-Version parameter --- scripts/diagnostics.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/diagnostics.sh b/scripts/diagnostics.sh index f766015..a5ee8fb 100755 --- a/scripts/diagnostics.sh +++ b/scripts/diagnostics.sh @@ -20,10 +20,10 @@ if [ ! "$1" ]; then fi echo "$HEADER_SIZE FLUXION Info" -if [ -f "fluxion" ];then - declare -r FLUXIONInfo=($(grep -oE "FLUXION(Version|Revision)=[0-9]+" fluxion)) +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)) + declare -r FLUXIONInfo=($(grep -oE "FLUXION(Version|Revision)=[0-9]+" ../fluxion.sh)) fi echo "FLUXION V${FLUXIONInfo[0]/*=/}.${FLUXIONInfo[1]/*=/}" echo -ne "\n\n"