Skip to content

Commit

Permalink
Add bashbrew/bashbrew.sh support any whitespace delimiter
Browse files Browse the repository at this point in the history
in some case a tab looks better than space.
  • Loading branch information
c0b committed Oct 1, 2015
1 parent 11ec62b commit d21a53c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bashbrew/bashbrew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,15 @@ for repoTag in "${repos[@]}"; do

tags=()
for line in "${repoTagLines[@]}"; do
tag="$(echo "$line" | awk -F ': +' '{ print $1 }')"
tag="$(echo "$line" | awk -F ':\\s+' '{ print $1 }')"
for parsedRepoTag in "${tags[@]}"; do
if [ "$repo:$tag" = "$parsedRepoTag" ]; then
echo >&2 "error: tag '$tag' is duplicated in '${cmd[@]}'"
exit 1
fi
done

repoDir="$(echo "$line" | awk -F ': +' '{ print $2 }')"
repoDir="$(echo "$line" | awk -F ':\\s+' '{ print $2 }')"

gitUrl="${repoDir%%@*}"
commitDir="${repoDir#*@}"
Expand Down

0 comments on commit d21a53c

Please sign in to comment.