cd to script

This commit is contained in:
Heavybullets8 2022-07-27 09:47:19 -06:00
parent e38c9c65d4
commit 97b65f746d

View File

@ -1,5 +1,9 @@
#!/bin/bash
# cd to script
script=$(readlink -f "$0")
script_path=$(dirname "$script")
cd "$script_path" || exit
# shellcheck source=functions/backup.sh
source functions/backup.sh