Set scripts to new run_directory norm
This commit is contained in:
		@@ -1,7 +1,8 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
# The purpose of this script is to install a Firefox profile from a save location.
 | 
					# 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
 | 
					# Remove current profile
 | 
				
			||||||
rm -r $firefox_data_path/$profile_name
 | 
					rm -r $firefox_data_path/$profile_name
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,8 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
# The purpose of this script is to zip a Firefox profile and stash it to a save location.
 | 
					# 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
 | 
					# Remove old archive
 | 
				
			||||||
rm $save_path/$file_name
 | 
					rm $save_path/$file_name
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
run_directory=$(dirname "$0")
 | 
					run_directory=$(dirname $(readlink -f "$0"))
 | 
				
			||||||
user=$(whoami)
 | 
					user=$(whoami)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -f $run_directory/.disabled ]; then
 | 
					if [ -f $run_directory/.disabled ]; then
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user