From ac3141cadeb4a0083b5dd05e4bbd915e6875a054 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 2 Aug 2016 17:07:57 +0200 Subject: reproducible/openwrt|lede: exit with error when called with unsupported mode Signed-off-by: Holger Levsen --- bin/reproducible_lede.sh | 4 ++++ bin/reproducible_openwrt.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh index 83bc7ed6..5c94dd29 100755 --- a/bin/reproducible_lede.sh +++ b/bin/reproducible_lede.sh @@ -37,6 +37,10 @@ case $1 in master) # master code following ;; + *) + echo "Unsupported mode $1. Arguments are $@" + exit 1 + ;; esac # diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh index c4c2096e..f12dcd5b 100755 --- a/bin/reproducible_openwrt.sh +++ b/bin/reproducible_openwrt.sh @@ -37,6 +37,10 @@ case $1 in master) # master code following ;; + *) + echo "Unsupported mode $1. Arguments are $@" + exit 1 + ;; esac # -- cgit v1.2.3-70-g09d2