From f6285b68ae6ea15c73b462f2e1bffa87395cfb17 Mon Sep 17 00:00:00 2001 From: Impact Date: Fri, 1 Dec 2023 20:12:24 +0100 Subject: [PATCH] Make update script work from anywhere 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 3e209884ff..c91db91b3b 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?"