From a407e988c8132992fed8a6c299a81ae12dc97f42 Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Thu, 24 May 2018 22:33:16 +0300 Subject: [PATCH] Add a missing bit to d1a9c8a --- compile.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/compile.sh b/compile.sh index 35831faa3..23a753092 100755 --- a/compile.sh +++ b/compile.sh @@ -48,6 +48,16 @@ if [[ $EUID != 0 ]]; then exit $? fi +# Script parameters handling +for i in "$@"; do + if [[ $i == *=* ]]; then + parameter=${i%%=*} + value=${i##*=} + display_alert "Command line: setting $parameter to" "${value:-(empty)}" "info" + eval $parameter=$value + fi +done + if [[ ! -f $SRC/.ignore_changes ]]; then echo -e "[\e[0;32m o.k. \x1B[0m] This script will try to update" git pull