From: Oleg Broytman Date: Sun, 9 Mar 2014 17:34:16 +0000 (+0400) Subject: Micro refactoring X-Git-Tag: v4.6.0~47 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=063423482c00ffc97cb697d093fdbf0d39421b3c;p=bookmarks_db.git Micro refactoring --- 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=''