From e904c236b4bf2dfbbdf4ab97f373990bd43ccd0f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 6 Feb 2012 21:27:28 +0000 Subject: [PATCH] don't quote things when not needed --- shell/helpers/path_helpers.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shell/helpers/path_helpers.sh b/shell/helpers/path_helpers.sh index 08d06b5..7186289 100644 --- a/shell/helpers/path_helpers.sh +++ b/shell/helpers/path_helpers.sh @@ -38,7 +38,7 @@ path_list () { # path_append () { if [ ! -n "$1" ]; then return 2; fi - path_remove "$1" + path_remove $1 export PATH="$PATH:$1" } @@ -60,7 +60,7 @@ path_append () { # path_prepend () { if [ ! -n "$1" ]; then return 2; fi - path_remove "$1" + path_remove $1 export PATH="$1:$PATH" } @@ -107,7 +107,7 @@ path_remove () { path_add_before () { if [ ! -n "$1" ] || [ ! -n "$2" ]; then return 2; fi if [[ ":$PATH:" == *":$2:"* ]]; then - path_remove "$1" + path_remove $1 local dirs=":$PATH:" dirs=${dirs/:$2:/:$1:$2:} export PATH=$(__path_clean $dirs) @@ -135,7 +135,7 @@ path_add_before () { path_add_after () { if [ ! -n "$1" ] || [ ! -n "$2" ]; then return 2; fi if [[ ":$PATH:" == *":$2:"* ]]; then - path_remove "$1" + path_remove $1 local dirs=":$PATH:" dirs=${dirs/:$2:/:$2:$1:} export PATH=$(__path_clean $dirs)