Skip to content

Commit

Permalink
build.search_source_branch: fix helper script for multiarch package s…
Browse files Browse the repository at this point in the history
…upport
  • Loading branch information
mkreisl committed Nov 14, 2019
1 parent ee98c30 commit e7c858e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.search_source_branch
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
cd "$1"
PARAM=
[ -z "$2" ] || PARAM="$2\$"
find ./build -maxdepth 2 -mindepth 2 -name config -exec grep ^config_source_branch=$PARAM {} + \
| xargs -L1 -I{} sh -c 'echo $(basename $(dirname {}))'
find ./build -maxdepth 2 -mindepth 2 \( -name config -o -name config.* \) -type f -exec grep ^config_source_branch=$PARAM {} + \
| xargs -L1 -I{} sh -c 'echo $(basename $(dirname {}))' | sort -u
) }

[ -n "$1" ] || exit 0
Expand Down

0 comments on commit e7c858e

Please sign in to comment.