From 049413cf5a076d066f8248283d3942d827d661b2 Mon Sep 17 00:00:00 2001 From: mag37 Date: Mon, 29 Apr 2024 11:18:21 +0200 Subject: [PATCH] quickfix Omitting error during git dir check. --- dockcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockcheck.sh b/dockcheck.sh index 959e53a..6c4aee9 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -83,7 +83,7 @@ self_update_curl() { self_update() { cd "$ScriptWorkDir" || { printf "Path error, skipping update.\n" ; return ; } - if [[ $(builtin type -P git) ]] && [[ "$(git ls-remote --get-url)" =~ .*"mag37/dockcheck".* ]] ; then + if [[ $(builtin type -P git) ]] && [[ "$(git ls-remote --get-url 2>/dev/null)" =~ .*"mag37/dockcheck".* ]] ; then printf "\n%s\n" "Pulling the latest version." git pull --force || { printf "Git error, manually pull/clone.\n" ; return ; } printf "\n%s\n" "--- starting over with the updated version ---"