Checks for an argument before setting a project
This fixes the bug where pushing esc whilst rofi menu is open would set the project path to the main projects folder
This commit is contained in:
		
							parent
							
								
									940c4e89f9
								
							
						
					
					
						commit
						3f5663c362
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -33,6 +33,7 @@ function unset_project(){ | |||
| } | ||||
| 
 | ||||
| function set_project(){ | ||||
| 	[ -z "$1" ] && exit 1 | ||||
| 	local switchto="$PROJECTS_PATH/$1" | ||||
| 	if [ -d "$switchto" ]; then | ||||
| 		if [ -L "$SYMLINC" ]; then | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue