From 7496399f3a04b0fb916859b66862c747fc8a637f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 6 Feb 2012 21:29:07 +0000 Subject: [PATCH] =?UTF-8?q?path=20helpers=20can=20now=20deal=20with=20path?= =?UTF-8?q?s=20containing=20spaces=E2=80=A6=20oops=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/helpers/path_helpers.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/helpers/path_helpers.sh b/shell/helpers/path_helpers.sh index 7186289..344ec5f 100644 --- a/shell/helpers/path_helpers.sh +++ b/shell/helpers/path_helpers.sh @@ -82,7 +82,7 @@ path_remove () { if [[ ":$PATH:" == *":$1:"* ]]; then local dirs=":$PATH:" dirs=${dirs/:$1:/:} - export PATH=$(__path_clean $dirs) + export PATH="$(__path_clean $dirs)" return 0 fi return 1 @@ -110,7 +110,7 @@ path_add_before () { path_remove $1 local dirs=":$PATH:" dirs=${dirs/:$2:/:$1:$2:} - export PATH=$(__path_clean $dirs) + export PATH="$(__path_clean $dirs)" return 0 fi return 1 @@ -138,7 +138,7 @@ path_add_after () { path_remove $1 local dirs=":$PATH:" dirs=${dirs/:$2:/:$2:$1:} - export PATH=$(__path_clean $dirs) + export PATH="$(__path_clean $dirs)" return 0 fi return 1