]> err.no Git - dotfiles/commitdiff
fix silly mistake where $NP was used instead of $PATH
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sat, 18 Oct 2003 14:52:41 +0000 (14:52 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sat, 18 Oct 2003 14:52:41 +0000 (14:52 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@200 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

environment

index 814559530bb9237a3b42fbfb3f02cd27ea815bd3..f41d5348dab5fbb6ec02ca74c39e4275d5957709 100644 (file)
@@ -18,20 +18,21 @@ is_debian () {
 }
 
 removepathelem () {
+    echo $PATH
     PATH=$(echo "$PATH" | sed -e "s,:*$1:,:,g")
 }
 
 setpathifdir () {
     if [ -d "$1" ]; then
         removepathelem "$1"
-        PATH="$1:$NP"
+        PATH="$1:$PATH"
     fi
 }
 
 appendpathifdir () {
     if [ -d "$1" ]; then
         removepathelem "$1"
-        PATH="$NP:$1"
+        PATH="$PATH:$1"
     fi
 }