X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=set-path;h=1f7499ceec0881fa3a36f388d2eabae9abd54385;hb=44646fbc8b70e327ffa031c06128632c405c238e;hp=43ff756da1a3d25a7ba294b5c7fd734edcadc763;hpb=a3bdba992715f6282e112e06a2beee15d20b69ca;p=bookmarks_db.git diff --git a/set-path b/set-path index 43ff756..1f7499c 100644 --- a/set-path +++ b/set-path @@ -2,7 +2,7 @@ START_DIR="`pwd`" cd "`dirname \"$0\"`" CWD="`pwd`" cd "$START_DIR" -if echo "$PATH" | grep -vq "\(^\|:\)$CWD\(:\|$\)"; then +if echo "$PATH" | grep -qv "\(^\|:\)$CWD\(:\|$\)"; then PATH="$CWD:$PATH" fi START_DIR=''