From 117d6b0faa04441246a1c426b8edebc6d8d633a6 Mon Sep 17 00:00:00 2001 From: Brandon Rodriguez <brodriguez8774@gmail.com> Date: Thu, 2 Jan 2020 15:51:17 -0500 Subject: [PATCH] Correct bug that prevented cd on directories with a space --- helper_script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper_script.sh b/helper_script.sh index fdcaaad..d538588 100644 --- a/helper_script.sh +++ b/helper_script.sh @@ -6,7 +6,7 @@ function cd() { # Check if .venv folder exists in path to final location. - local cd_string=$1 + local cd_string=$@ local cd_path="" local checked_current=false @@ -62,7 +62,7 @@ function cd() { # Execute normal cd command. - builtin cd $1 + builtin cd "$cd_string" # Check for .venv folder in new directory. -- GitLab