diff --git a/firefox-backup.sh b/firefox-backup.sh index 4a51e47..65f26b3 100644 --- a/firefox-backup.sh +++ b/firefox-backup.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -source "$(dirname "$0")/variables.conf" +run_directory=$(dirname $(readlink -f "$0")) +source "$run_directory/variables.conf" # Remove old archive old="$backups_directory/profile-$(date -d "-10 days" +'%Y%m%d').tgz" diff --git a/install.sh b/install.sh index 5365956..e3c42a3 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -run_directory=$(dirname "$0") +run_directory=$(dirname $(readlink -f "$0")) user=$(whoami) if [ -f $run_directory/.disabled ]; then