From 77eb18fdf8b39f71268d459de36a919ba5446aa0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 26 Sep 2014 21:44:35 +0100 Subject: [PATCH] Check valid system variant --- install-freedombone.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 29b11915..8840661a 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -202,6 +202,12 @@ function argument_checks { show_help exit 4 fi + if [ $SYSTEM_TYPE ]; then + if [[ $SYSTEM_TYPE != $VARIANT_WRITER && $SYSTEM_TYPE != $VARIANT_CLOUD && $SYSTEM_TYPE != $VARIANT_CHAT && $SYSTEM_TYPE != $VARIANT_MAILBOX && $SYSTEM_TYPE != $VARIANT_SOCIAL ]]; then + echo "'$SYSTEM_TYPE' is an unrecognised Freedombone variant." + exit 30 + fi + fi } function change_login_message {