mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Add missing "== true"
This commit is contained in:
parent
bd2d81f691
commit
9a9d9007cd
1 changed files with 4 additions and 4 deletions
|
@ -102,7 +102,7 @@ checkout()
|
||||||
echo "::: Please re-run install script from https://github.com/pi-hole/pi-hole"
|
echo "::: Please re-run install script from https://github.com/pi-hole/pi-hole"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
if [[ ${INSTALL_WEB} ]]; then
|
if [[ ${INSTALL_WEB} == true ]]; then
|
||||||
if ! is_repo "${webInterfaceDir}" ; then
|
if ! is_repo "${webInterfaceDir}" ; then
|
||||||
echo "::: Critical Error: Web Admin repo is missing from system!"
|
echo "::: Critical Error: Web Admin repo is missing from system!"
|
||||||
echo "::: Please re-run install script from https://github.com/pi-hole/pi-hole"
|
echo "::: Please re-run install script from https://github.com/pi-hole/pi-hole"
|
||||||
|
@ -126,7 +126,7 @@ checkout()
|
||||||
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"
|
||||||
fetch_checkout_pull_branch "${PI_HOLE_FILES_DIR}" "development" || { echo "Unable to pull Core developement branch"; exit 1; }
|
fetch_checkout_pull_branch "${PI_HOLE_FILES_DIR}" "development" || { echo "Unable to pull Core developement branch"; exit 1; }
|
||||||
if [[ ${INSTALL_WEB} ]]; then
|
if [[ ${INSTALL_WEB} == true ]]; then
|
||||||
echo "::: Web interface"
|
echo "::: Web interface"
|
||||||
fetch_checkout_pull_branch "${webInterfaceDir}" "devel" || { echo "Unable to pull Web development branch"; exit 1; }
|
fetch_checkout_pull_branch "${webInterfaceDir}" "devel" || { echo "Unable to pull Web development branch"; exit 1; }
|
||||||
fi
|
fi
|
||||||
|
@ -136,7 +136,7 @@ checkout()
|
||||||
echo "::: Shortcut \"master\" detected - checking out master branches ..."
|
echo "::: Shortcut \"master\" detected - checking out master branches ..."
|
||||||
echo "::: Pi-hole core"
|
echo "::: Pi-hole core"
|
||||||
fetch_checkout_pull_branch "${PI_HOLE_FILES_DIR}" "master" || { echo "Unable to pull Core master branch"; exit 1; }
|
fetch_checkout_pull_branch "${PI_HOLE_FILES_DIR}" "master" || { echo "Unable to pull Core master branch"; exit 1; }
|
||||||
if [[ ${INSTALL_WEB} ]]; then
|
if [[ ${INSTALL_WEB} == true ]]; then
|
||||||
echo "::: Web interface"
|
echo "::: Web interface"
|
||||||
fetch_checkout_pull_branch "${webInterfaceDir}" "master" || { echo "Unable to pull web master branch"; exit 1; }
|
fetch_checkout_pull_branch "${webInterfaceDir}" "master" || { echo "Unable to pull web master branch"; exit 1; }
|
||||||
fi
|
fi
|
||||||
|
@ -159,7 +159,7 @@ checkout()
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
checkout_pull_branch "${PI_HOLE_FILES_DIR}" "${2}"
|
checkout_pull_branch "${PI_HOLE_FILES_DIR}" "${2}"
|
||||||
elif [[ "${1}" == "web" && ${INSTALL_WEB} ]] ; then
|
elif [[ "${1}" == "web" && ${INSTALL_WEB} == true ]] ; then
|
||||||
echo -n "::: Fetching remote branches for the web interface from ${webInterfaceGitUrl} ... "
|
echo -n "::: Fetching remote branches for the web interface from ${webInterfaceGitUrl} ... "
|
||||||
if ! fully_fetch_repo "${webInterfaceDir}" ; then
|
if ! fully_fetch_repo "${webInterfaceDir}" ; then
|
||||||
echo "::: Fetching all branches for Pi-hole web interface repo failed!"
|
echo "::: Fetching all branches for Pi-hole web interface repo failed!"
|
||||||
|
|
Loading…
Reference in a new issue