X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/85dfe18fb118fffa4d77c5a2877ad7570d8d0ec3..938ee6f6bb1384a4c57556fd9be62ebf278c8114:/vcsh?ds=sidebyside diff --git a/vcsh b/vcsh index e8fefbb..7a9bf39 100755 --- a/vcsh +++ b/vcsh @@ -35,6 +35,7 @@ help() { run \\ Use this repository setup Set up repository with recommended settings + which Find substring in any tracked file name write-gitignore \\ Write .gitignore.d/ via git ls-files @@ -186,7 +187,7 @@ use() { which() { for VCSH_REPO_NAME in $(list); do for VCSH_FILE in $(get_files); do - echo $VCSH_FILE | grep $VCSH_COMMAND_PARAMETER > /dev/null && echo "$VCSH_REPO_NAME: $VCSH_FILE" + echo $VCSH_FILE | grep -q "$VCSH_COMMAND_PARAMETER" && echo "$VCSH_REPO_NAME: $VCSH_FILE" done done | sort -u }