mirror of
				https://github.com/arkenfox/user.js.git
				synced 2025-11-04 07:45:26 +01:00 
			
		
		
		
	fix profile check (#564)
This commit is contained in:
		
				
					committed by
					
						
						claustromaniac
					
				
			
			
				
	
			
			
			
						parent
						
							db56940422
						
					
				
				
					commit
					74e753d0c5
				
			@@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
## ghacks-user.js updater for macOS and Linux
 | 
			
		||||
 | 
			
		||||
## version: 2.2
 | 
			
		||||
## version: 2.3
 | 
			
		||||
## Author: Pat Johnson (@overdodactyl)
 | 
			
		||||
## Additional contributors: @earthlng, @ema-pe, @claustromaniac
 | 
			
		||||
 | 
			
		||||
@@ -147,7 +147,7 @@ readIniFile () { # expects one argument: absolute path of profiles.ini
 | 
			
		||||
    echo -e "\n"
 | 
			
		||||
    if [[ $REPLY =~ ^(0|[1-9][0-9]*)$ ]]; then
 | 
			
		||||
      grep '^\[Profile'${REPLY} -A 4 "$inifile" | grep -v '^\[Profile'${REPLY} > $tfile
 | 
			
		||||
      if [ !$? ]; then
 | 
			
		||||
      if [[ "$?" != "0" ]]; then
 | 
			
		||||
        echo "Profile${REPLY} does not exist!" && exit 1
 | 
			
		||||
      fi
 | 
			
		||||
    else
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user