Remove target check in autoinstall/before.sh
This commit is contained in:
		
							parent
							
								
									6003e52c8a
								
							
						
					
					
						commit
						7934e32b27
					
				
					 2 changed files with 7 additions and 4 deletions
				
			
		|  | @ -1,14 +1,17 @@ | ||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
| if [ "${action:?}" = "run" ] | action=${action:?} | ||||||
|  | 
 | ||||||
|  | # if action is run or completions, do nothing | ||||||
|  | if [ "$action" = "run" ] || [ "$action" = "completions" ] | ||||||
| then | then | ||||||
| 	return | 	exit 0 | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| clean=${args[--clean]:-} | clean=${args[--clean]:-} | ||||||
| target=${args[target]:?} | target=${args[target]:?} | ||||||
| 
 | 
 | ||||||
| if [ "${action:?}" = "exe" ] | if [ "$action" = "exe" ] | ||||||
| then | then | ||||||
| 	target="$HOME/.local/bin/$target" | 	target="$HOME/.local/bin/$target" | ||||||
| fi | fi | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| name: autostart-manage | name: autostart-manage | ||||||
| help: Manage autostart | help: Manage autostart | ||||||
| version: 0.1.0 | version: 0.1.1 | ||||||
| 
 | 
 | ||||||
| dependencies: | dependencies: | ||||||
|   tomlq: please install yq (https://github.com/kislyuk/yq) |   tomlq: please install yq (https://github.com/kislyuk/yq) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue