Skip to content
Snippets Groups Projects
Commit d946b078 authored by Richard Hartmann's avatar Richard Hartmann
Browse files

vcsh: Make `vcsh which dontexist` exit 1

parent 88dc47b0
Branches
Tags
No related merge requests found
...@@ -351,6 +351,7 @@ use() { ...@@ -351,6 +351,7 @@ use() {
} }
which() { which() {
[ -e "$VCSH_COMMAND_PARAMETER" ] || fatal "'$VCSH_COMMAND_PARAMETER' does not exist" 1
for VCSH_REPO_NAME in $(list); do for VCSH_REPO_NAME in $(list); do
for VCSH_FILE in $(get_files); do for VCSH_FILE in $(get_files); do
echo "$VCSH_FILE" | grep -q "$VCSH_COMMAND_PARAMETER" && echo "$VCSH_REPO_NAME: $VCSH_FILE" echo "$VCSH_FILE" | grep -q "$VCSH_COMMAND_PARAMETER" && echo "$VCSH_REPO_NAME: $VCSH_FILE"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment