mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Require branch to check out
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
0a0d25dff4
commit
20fd61468d
1 changed files with 7 additions and 0 deletions
|
@ -82,6 +82,13 @@ checkout()
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if ! warning1 ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue