mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-23 15:50:19 +00:00
Don't ignore exit code of version.sh
If it exits with a non-zero return code, that means some error occurred, and so it shouldn't be ignored. Signed-off-by: Subhaditya Nath <sn03.general@gmail.com>
This commit is contained in:
parent
e8079620f5
commit
298324e6e6
2 changed files with 2 additions and 2 deletions
|
@ -179,6 +179,7 @@ versionOutput() {
|
|||
output="Latest ${1^} hash is $latHash"
|
||||
else
|
||||
errorOutput
|
||||
return 1
|
||||
fi
|
||||
|
||||
[[ -n "$output" ]] && echo " $output"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue