Browse Source

repo-find: fix piped usage

Signed-off-by: Alejandro Mery <amery@hanoverdisplays.com>
master
Alejandro Mery 8 years ago
committed by Alejandro Mery
parent
commit
e39ec9b623
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      files/bin/repo-find

+ 2
- 1
files/bin/repo-find

@ -8,6 +8,8 @@ esac
if [ "$COLOUR" = auto -a -t 1 ]; then
COLOUR=true
elif [ "$COLOUR" != true ]; then
COLOUR=false
fi
if $COLOUR; then
@ -34,7 +36,6 @@ git() {
"$GIT" --git-dir "$dir/.git" --work-tree "$dir" "$@"
}
echo -n "$NORMAL"
repo list -p | while read p; do
if [ $# -gt 0 ]; then
git "$p" ls-files | grep "$@"

Loading…
Cancel
Save