]> git.phdru.name Git - audio-cdr-video.git/commitdiff
Get full path using cd/pwd and then cd back
authorOleg Broytman <phd@phdru.name>
Tue, 14 Jan 2014 17:47:00 +0000 (21:47 +0400)
committerOleg Broytman <phd@phdru.name>
Tue, 14 Jan 2014 17:47:00 +0000 (21:47 +0400)
set-path

index b5051bccc4b9c446cfa1727d1ff6818a1d41281b..563250487b362bf8946881703f3a88f596234c19 100644 (file)
--- a/set-path
+++ b/set-path
@@ -1,5 +1,7 @@
-CWD="`dirname \"$0\"`"
-CWD="`abspath.py \"$CWD\"`"
+START_DIR="`pwd`"
+cd "`dirname \"$0\"`"
+CWD="`pwd`"
+cd "$START_DIR"
 if echo "$PATH" | grep -vq "\(^\|:\)$CWD\(:\|$\)"; then
    PATH="$CWD:$PATH"
 fi