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:
parent
c6b87972b1
commit
5ae0039e5b
@ -119,7 +119,21 @@ cd "${PKG_PATH}"
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Welcome to the ${PGM_NAME} installer"
|
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 "${PGM_NAME} will be installed for user ${USER_NAME} in ${INSTALL_DEST_BASE}"
|
||||||
echo ""
|
echo ""
|
||||||
#############################
|
#############################
|
||||||
|
Loading…
Reference in New Issue
Block a user