From 5ae0039e5b99e927746110461528ef93e03c81e0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 16 Jul 2020 20:38:33 +0200 Subject: [PATCH] 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 --- tools/linux_packaging/stage2.run.in | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tools/linux_packaging/stage2.run.in b/tools/linux_packaging/stage2.run.in index 0fa336a096..ce53b04ce7 100755 --- a/tools/linux_packaging/stage2.run.in +++ b/tools/linux_packaging/stage2.run.in @@ -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 "" #############################