mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-16 04:19:07 +00:00
Add "master" shortcut
This commit is contained in:
parent
8a14a63d5d
commit
d2ab0694b7
1 changed files with 9 additions and 1 deletions
|
@ -125,13 +125,21 @@ checkout()
|
||||||
echo ":::"
|
echo ":::"
|
||||||
|
|
||||||
if [[ "${2}" == "dev" ]] ; then
|
if [[ "${2}" == "dev" ]] ; then
|
||||||
# Shortcut to check out development version
|
# Shortcut to check out development branches
|
||||||
echo "::: Shortcut \"dev\" detected - checking out development / devel branches ..."
|
echo "::: Shortcut \"dev\" detected - checking out development / devel branches ..."
|
||||||
echo "::: Pi-hole core"
|
echo "::: Pi-hole core"
|
||||||
checkout_pull_branch "${PI_HOLE_FILES_DIR}" "development"
|
checkout_pull_branch "${PI_HOLE_FILES_DIR}" "development"
|
||||||
echo "::: Web interface"
|
echo "::: Web interface"
|
||||||
checkout_pull_branch "${WEB_INTERFACE_DIR}" "devel"
|
checkout_pull_branch "${WEB_INTERFACE_DIR}" "devel"
|
||||||
echo "::: done!"
|
echo "::: done!"
|
||||||
|
elif [[ "${2}" == "master" ]] ; then
|
||||||
|
# Shortcut to check out master branches
|
||||||
|
echo "::: Shortcut \"master\" detected - checking out master branches ..."
|
||||||
|
echo "::: Pi-hole core"
|
||||||
|
checkout_pull_branch "${PI_HOLE_FILES_DIR}" "master"
|
||||||
|
echo "::: Web interface"
|
||||||
|
checkout_pull_branch "${WEB_INTERFACE_DIR}" "master"
|
||||||
|
echo "::: done!"
|
||||||
elif [[ "${2}" == "core" ]] ; then
|
elif [[ "${2}" == "core" ]] ; then
|
||||||
# Have to user chosing the branch he wants
|
# Have to user chosing the branch he wants
|
||||||
if ! (for e in "${corebranches[@]}"; do [[ "$e" == "${3}" ]] && exit 0; done); then
|
if ! (for e in "${corebranches[@]}"; do [[ "$e" == "${3}" ]] && exit 0; done); then
|
||||||
|
|
Loading…
Add table
Reference in a new issue