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:
Jonathan Hodgson 2021-02-13 20:19:21 +00:00
parent 940c4e89f9
commit 3f5663c362

View file

@ -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