13
0

Don't allow to run Linux installer on other unices

e.g. on MacOS, BUNDLE_DIR variable is not set correctly, resulting
in the whole hard drive content being copied to /opt
This commit is contained in:
Robin Gareus 2020-07-16 20:38:33 +02:00
parent c6b87972b1
commit 5ae0039e5b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -119,7 +119,21 @@ cd "${PKG_PATH}"
echo ""
echo "Welcome to the ${PGM_NAME} installer"
echo ""
case `uname -s` in
Linux)
echo ""
;;
*)
echo ""
echo "!!! ERROR !!! - Unsupported Operating System `uname -s`."
echo "This installer is for 'Linux' kernel based systems only."
echo ""
read -p "Press ENTER to exit installer:" BLAH
exit 1
;;
esac
echo "${PGM_NAME} will be installed for user ${USER_NAME} in ${INSTALL_DEST_BASE}"
echo ""
#############################