]> git.phdru.name Git - bookmarks_db.git/commitdiff
Micro refactoring
authorOleg Broytman <phd@phdru.name>
Sun, 9 Mar 2014 17:34:16 +0000 (21:34 +0400)
committerOleg Broytman <phd@phdru.name>
Sun, 9 Mar 2014 17:34:16 +0000 (21:34 +0400)
set-path

index 43ff756da1a3d25a7ba294b5c7fd734edcadc763..1f7499ceec0881fa3a36f388d2eabae9abd54385 100644 (file)
--- 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=''