rm cd from selfupdate

This commit is contained in:
Heavybullets8 2022-07-27 16:56:29 -06:00
parent e365429ee4
commit 6c9bd67e42
2 changed files with 2 additions and 4 deletions

View File

@ -3,10 +3,6 @@
args=("$@") args=("$@")
self_update() { self_update() {
script=$(readlink -f "$0")
script_path=$(dirname "$script")
script_name="heavy_script.sh"
cd "$script_path" || exit
git fetch &> /dev/null git fetch &> /dev/null
# TODO: change beta to main once testing is complete # TODO: change beta to main once testing is complete
if git diff --name-only origin/beta | grep -qs ".sh" ; then if git diff --name-only origin/beta | grep -qs ".sh" ; then

View File

@ -3,8 +3,10 @@
# cd to script, this ensures the script can find the source scripts below, even when ran from a seperate directory # 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=$(readlink -f "$0")
script_path=$(dirname "$script") script_path=$(dirname "$script")
script_name="heavy_script.sh"
cd "$script_path" || exit cd "$script_path" || exit
# shellcheck source=functions/backup.sh # shellcheck source=functions/backup.sh
source functions/backup.sh source functions/backup.sh
# shellcheck source=functions/dns.sh # shellcheck source=functions/dns.sh