Set scripts to new run_directory norm

This commit is contained in:
Alexandre CATTEAU 2022-09-22 18:53:08 +02:00
parent 9db48d0991
commit 7dddfcfd78
3 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,8 @@
#!/usr/bin/env bash
# The purpose of this script is to install a Firefox profile from a save location.
source "$(dirname "$0")/variables.conf"
run_directory=$(dirname $(readlink -f "$0"))
source "$run_directory/variables.conf"
# Remove current profile
rm -r $firefox_data_path/$profile_name

View File

@ -1,7 +1,8 @@
#!/usr/bin/env bash
# The purpose of this script is to zip a Firefox profile and stash it to a save location.
source "$(dirname "$0")/variables.conf"
run_directory=$(dirname $(readlink -f "$0"))
source "$run_directory/variables.conf"
# Remove old archive
rm $save_path/$file_name

View File

@ -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