Merge pull request #59 from kuhnmarek/3d-gussner/MK3_PF-build_106

Linux 32-bit recognition fixed
This commit is contained in:
3d-gussner 2019-07-24 13:53:01 +02:00 committed by GitHub
commit 68f0a4a3f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!"