cd to script
This commit is contained in:
parent
e38c9c65d4
commit
97b65f746d
@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# cd to script
|
||||||
|
script=$(readlink -f "$0")
|
||||||
|
script_path=$(dirname "$script")
|
||||||
|
cd "$script_path" || exit
|
||||||
|
|
||||||
# shellcheck source=functions/backup.sh
|
# shellcheck source=functions/backup.sh
|
||||||
source functions/backup.sh
|
source functions/backup.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user