From f88324c3d3083376da9c35286386a68130fcb0af Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sat, 13 Feb 2021 20:19:21 +0000 Subject: [PATCH] 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 --- bin/.bin/project-management/project-switch | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/.bin/project-management/project-switch b/bin/.bin/project-management/project-switch index e41a99d5..c0d9df92 100755 --- a/bin/.bin/project-management/project-switch +++ b/bin/.bin/project-management/project-switch @@ -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