Check valid system variant

This commit is contained in:
Bob Mottram 2014-09-26 21:44:35 +01:00
parent 94d7b67bc2
commit 77eb18fdf8
1 changed files with 6 additions and 0 deletions

View File

@ -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 {