From fd67e0dff1254402399d7a3b5a314341636a339d Mon Sep 17 00:00:00 2001 From: mag37 Date: Sat, 4 Mar 2023 21:35:47 +0100 Subject: [PATCH] Update dockcheck.sh --- dockcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockcheck.sh b/dockcheck.sh index 4688a44..063d82d 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -41,7 +41,7 @@ shift "$((OPTIND-1))" self_update_git() { cd "$ScriptWorkDir" || { printf "Path error, skipping update.\n" ; return ; } [[ $(builtin type -P git) ]] || { printf "Git not installed, skipping update.\n" ; return ; } - ScriptUpstream=$(git rev-parse --abbrev-ref --symbolic-full-name @{upstream}) + ScriptUpstream=$(git rev-parse --abbrev-ref --symbolic-full-name @{upstream}) || { printf "Script not in cloned directory, skipping update.\n" ; return ; } git fetch [ -n "$(git diff --name-only "$ScriptUpstream" "$ScriptName")" ] && { printf "%s\n" "Pulling the latest version."