From df00bc9bb57a731e1182a99370c5431621fffe0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20K=C3=BChn?= Date: Wed, 24 Jul 2019 13:14:59 +0200 Subject: [PATCH] Linux 32-bit recognition fixed --- PF-build.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/PF-build.sh b/PF-build.sh index 716160a6..c780900d 100755 --- a/PF-build.sh +++ b/PF-build.sh @@ -138,18 +138,23 @@ if [ $TARGET_OS == "windows" ]; then elif [ $(uname -m) == "i386" ]; then echo "$(tput setaf 2)Windows 32-bit found$(tput sgr0)" Processor="32" + else + echo "$(tput setaf 1)Unsupported OS: Windows $(uname -m)" + echo "Please refer to the notes of build.sh$(tput sgr0)" + exit 1 fi -# Linux 64-bit +# Linux elif [ $TARGET_OS == "linux" ]; then if [ $(uname -m) == "x86_64" ]; then echo "$(tput setaf 2)Linux 64-bit found$(tput sgr0)" Processor="64" - fi -# Linux 32-bit -elif [ $TARGET_OS == "linux" ]; then - if [[ $(uname -m) == "i386" || $(uname -m) == "i686" ]]; then + elif [[ $(uname -m) == "i386" || $(uname -m) == "i686" ]]; then echo "$(tput setaf 2)Linux 32-bit found$(tput sgr0)" Processor="32" + else + echo "$(tput setaf 1)Unsupported OS: Linux $(uname -m)" + echo "Please refer to the notes of build.sh$(tput sgr0)" + exit 1 fi else echo "$(tput setaf 1)This script doesn't support your Operating system!"