]> git.phdru.name Git - audio-cdr-video.git/blobdiff - set-path
Micro refactoring
[audio-cdr-video.git] / set-path
index b5051bccc4b9c446cfa1727d1ff6818a1d41281b..1f7499ceec0881fa3a36f388d2eabae9abd54385 100644 (file)
--- a/set-path
+++ b/set-path
@@ -1,5 +1,10 @@
-CWD="`dirname \"$0\"`"
-CWD="`abspath.py \"$CWD\"`"
-if echo "$PATH" | grep -vq "\(^\|:\)$CWD\(:\|$\)"; then
+START_DIR="`pwd`"
+cd "`dirname \"$0\"`"
+CWD="`pwd`"
+cd "$START_DIR"
+if echo "$PATH" | grep -qv "\(^\|:\)$CWD\(:\|$\)"; then
    PATH="$CWD:$PATH"
 fi
+START_DIR=''
+CWD=''
+unset START_DIR CWD