mirror of
				https://github.com/arkenfox/user.js.git
				synced 2025-11-04 07:45:26 +01:00 
			
		
		
		
	updater.sh - next attempt
... at fixing the script path detection. should hopefully fix https://github.com/ghacksuserjs/ghacks-user.js/issues/264#issuecomment-346891526
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
### ghacks-user.js updater for Mac/Linux
 | 
			
		||||
## author: @overdodactyl
 | 
			
		||||
## version: 1.1
 | 
			
		||||
## version: 1.2
 | 
			
		||||
 | 
			
		||||
ghacksjs="https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/user.js"
 | 
			
		||||
 | 
			
		||||
@@ -10,8 +10,8 @@ echo -e "\nThis script should be run from your Firefox profile directory.\n"
 | 
			
		||||
 | 
			
		||||
currdir=$(pwd)
 | 
			
		||||
 | 
			
		||||
## get the full path of this script (greadlink for Mac, readlink for Linux)
 | 
			
		||||
scriptfullpath=$(greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || readlink -f "${BASH_SOURCE[0]}")
 | 
			
		||||
## get the full path of this script (readlink for Linux)
 | 
			
		||||
scriptfullpath=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || "${BASH_SOURCE[0]}")
 | 
			
		||||
 | 
			
		||||
## change directory to the Firefox profile directory
 | 
			
		||||
cd "$(dirname "${scriptfullpath}")"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user