Skip to content

Commit

Permalink
fix: Make update script work from anywhere (#19965)
Browse files Browse the repository at this point in the history
Makes update script work from anywhere changing the current directory to where the file is located.
  • Loading branch information
Impact123 authored Dec 2, 2023
1 parent 6619146 commit 346cb90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -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?"
Expand Down

0 comments on commit 346cb90

Please sign in to comment.