From 20fd61468df87d84d42e5260c0d794bc2285857c Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Fri, 10 Mar 2017 11:04:37 -0800 Subject: [PATCH] Require branch to check out Signed-off-by: Dan Schaper --- advanced/Scripts/piholeCheckout.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/advanced/Scripts/piholeCheckout.sh b/advanced/Scripts/piholeCheckout.sh index 0da8dd02..08684bb9 100644 --- a/advanced/Scripts/piholeCheckout.sh +++ b/advanced/Scripts/piholeCheckout.sh @@ -82,6 +82,13 @@ checkout() exit 1 fi + if [[ -z "${1}" ]]; then + echo "::: No option detected. Please use 'pihole checkout '." + echo "::: Or enter the repository and branch you would like to check out:" + echo "::: 'pihole checkout '" + exit 1 + fi + if ! warning1 ; then exit 1 fi