Skip to content

Commit

Permalink
vcsh: Fix regression introduced in d946b07
Browse files Browse the repository at this point in the history
github: Closes #168
  • Loading branch information
RichiH committed Nov 29, 2015
1 parent d5c11e4 commit 9cf8f5c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vcsh
Expand Up @@ -425,12 +425,16 @@ use() {
}

which() {
[ -e "$VCSH_COMMAND_PARAMETER" ] || fatal "'$VCSH_COMMAND_PARAMETER' does not exist" 1
for VCSH_REPO_NAME in $(list); do
output=$(for VCSH_REPO_NAME in $(list); do
for VCSH_FILE in $(get_files); do
echo "$VCSH_FILE" | grep -q "$VCSH_COMMAND_PARAMETER" && echo "$VCSH_REPO_NAME: $VCSH_FILE"
done
done | sort -u
done | sort -u)
if [ -z "$output" ]; then
fatal "'$VCSH_COMMAND_PARAMETER' does not exist" 1
else
echo "$output"
fi
}

write_gitignore() {
Expand Down

0 comments on commit 9cf8f5c

Please sign in to comment.