diff --git a/advanced/Scripts/version.sh b/advanced/Scripts/version.sh index 978dd3fe..ff14d83a 100755 --- a/advanced/Scripts/version.sh +++ b/advanced/Scripts/version.sh @@ -179,6 +179,7 @@ versionOutput() { output="Latest ${1^} hash is $latHash" else errorOutput + return 1 fi [[ -n "$output" ]] && echo " $output" diff --git a/pihole b/pihole index e8fa9317..96a4a9f6 100755 --- a/pihole +++ b/pihole @@ -95,8 +95,7 @@ uninstallFunc() { versionFunc() { shift - "${PI_HOLE_SCRIPT_DIR}"/version.sh "$@" - exit 0 + exec "${PI_HOLE_SCRIPT_DIR}"/version.sh "$@" } # Get PID of main pihole-FTL process