 9c839d789f
			
		
	
	
		9c839d789f
		
			
		
	
	
	
	
		
			
			Most of them are missing quotes, `` -> $(), and -o/-a usage in conditions. Also add few directives disabling checks where were too verbose.
		
			
				
	
	
		
			17 lines
		
	
	
		
			195 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			195 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| read -r url
 | |
| 
 | |
| case "$url" in
 | |
|     http://*|\
 | |
|     https://*|\
 | |
|     ftp://*)
 | |
|         exec qubes-open "$url"
 | |
|         ;;
 | |
|     *)
 | |
|         echo "Invalid URL" >&2
 | |
|         exit 1
 | |
|         ;;
 | |
| esac
 | |
| 
 |