Require branch to check out

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
pull/1313/head
Dan Schaper 7 years ago
parent 0a0d25dff4
commit 20fd61468d
No known key found for this signature in database
GPG Key ID: 572E999E385B7BFC

@ -82,6 +82,13 @@ checkout()
exit 1
fi
if [[ -z "${1}" ]]; then
echo "::: No option detected. Please use 'pihole checkout <master|development>'."
echo "::: Or enter the repository and branch you would like to check out:"
echo "::: 'pihole checkout <web|core> <branchname>'"
exit 1
fi
if ! warning1 ; then
exit 1
fi

Loading…
Cancel
Save