From 346cb90e9e78fd08ffb49cb954bcbee2f3bc9191 Mon Sep 17 00:00:00 2001 From: Impact Date: Sat, 2 Dec 2023 19:48:17 +0100 Subject: [PATCH] fix: Make update script work from anywhere (#19965) Makes update script work from anywhere changing the current directory to where the file is located. --- update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/update.sh b/update.sh index 3e209884..c91db91b 100755 --- a/update.sh +++ b/update.sh @@ -1,4 +1,5 @@ #!/bin/bash -e +cd "$(dirname "$0")" if [ -d data-backup ]; then echo "ERROR: Backup directory exists. May be previous restoring was failed?"