From: Oleg Broytman Date: Tue, 14 Jan 2014 17:47:00 +0000 (+0400) Subject: Get full path using cd/pwd and then cd back X-Git-Url: https://git.phdru.name/?p=audio-cdr-video.git;a=commitdiff_plain;h=670ada11fdc76b1b83e8baf9a13e0ad2f154425d Get full path using cd/pwd and then cd back --- diff --git a/set-path b/set-path index b5051bc..5632504 100644 --- 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