Commit 890ec48c authored by Dan Johansen's avatar Dan Johansen

[buildarmpkg] add branch argument to launch script

parent 6b926f3a
......@@ -14,7 +14,7 @@ if [ "$EUID" -ne 0 ]
fi
#Arguments
opt=":p:a:i:kh"
opt=":p:a:i:b:kh"
while getopts "${opt}" arg; do
case $arg in
......@@ -27,6 +27,9 @@ while getopts "${opt}" arg; do
k)
BUILDCLEAN=false
;;
b)
BRANCH="${OPTARG}"
;;
i)
ADD_PACKAGE="${OPTARG}"
;;
......@@ -56,6 +59,11 @@ if [ $ARCH == "any" ]; then
ARCH="aarch64"
fi
#Make sure only a known branch is used
if [[ "$BRANCH" != "stable" && "$BRANCH" != "testing" && "$BRANCH" != "unstable" ]]; then
msg "Unknown branch. Please use either, stable, testing or unstable!"
exit 1
fi
# start the timer
timer_start=$(get_timer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment