rm cd from selfupdate
This commit is contained in:
parent
e365429ee4
commit
6c9bd67e42
@ -3,10 +3,6 @@
|
||||
args=("$@")
|
||||
|
||||
self_update() {
|
||||
script=$(readlink -f "$0")
|
||||
script_path=$(dirname "$script")
|
||||
script_name="heavy_script.sh"
|
||||
cd "$script_path" || exit
|
||||
git fetch &> /dev/null
|
||||
# TODO: change beta to main once testing is complete
|
||||
if git diff --name-only origin/beta | grep -qs ".sh" ; then
|
||||
|
@ -3,8 +3,10 @@
|
||||
# cd to script, this ensures the script can find the source scripts below, even when ran from a seperate directory
|
||||
script=$(readlink -f "$0")
|
||||
script_path=$(dirname "$script")
|
||||
script_name="heavy_script.sh"
|
||||
cd "$script_path" || exit
|
||||
|
||||
|
||||
# shellcheck source=functions/backup.sh
|
||||
source functions/backup.sh
|
||||
# shellcheck source=functions/dns.sh
|
||||
|
Loading…
Reference in New Issue
Block a user