mirror of
				https://github.com/arkenfox/user.js.git
				synced 2025-11-03 23:35:26 +01:00 
			
		
		
		
	Update updater.sh
This commit is contained in:
		@@ -10,11 +10,14 @@ echo -e "\nThis script should be run from your Firefox profile directory.\n"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
currdir=$(pwd)
 | 
					currdir=$(pwd)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## get the full path of this script (readlink for Linux, greadlink for Mac with coreutils installed, fallback otherwise)
 | 
					## get the full path of this script (readlink for Linux, greadlink for Mac with coreutils installed)
 | 
				
			||||||
scriptfullpath=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || "${BASH_SOURCE[0]}")
 | 
					sfp=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## fallback for Macs without coreutils
 | 
				
			||||||
 | 
					if [ -z "$sfp" ]; then sfp=${BASH_SOURCE[0]}; fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## change directory to the Firefox profile directory
 | 
					## change directory to the Firefox profile directory
 | 
				
			||||||
cd "$(dirname "${scriptfullpath}")"
 | 
					cd "$(dirname "${sfp}")"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo -e "Updating the user.js for Firefox profile:\n$(pwd)\n"
 | 
					echo -e "Updating the user.js for Firefox profile:\n$(pwd)\n"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user