mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Move value checks to if
calls.
This commit is contained in:
parent
9ec5bbd560
commit
035e4bf727
1 changed files with 2 additions and 4 deletions
|
@ -58,15 +58,13 @@ getGitFiles() {
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
|
||||||
is_repo "${PI_HOLE_FILES_DIR}"
|
if ! is_repo "${PI_HOLE_FILES_DIR}"; then #This is unlikely
|
||||||
if [[ $? -ne 0 ]]; then #This is unlikely
|
|
||||||
echo "::: Critical Error: Pi-Hole repo missing from system!"
|
echo "::: Critical Error: Pi-Hole repo 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"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
is_repo "${ADMIN_INTERFACE_DIR}" &> /dev/null
|
if ! $(is_repo "${ADMIN_INTERFACE_DIR}"); then #This is unlikely
|
||||||
if [[ $? -ne 0 ]]; then #This is unlikely
|
|
||||||
echo "::: Critical Error: Pi-Hole repo missing from system!"
|
echo "::: Critical Error: Pi-Hole repo 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"
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|
Loading…
Reference in a new issue