Merge pull request #44 from infosiftr/more-canonical-parsing

Add more canonical "manifest line parsing" based on bashbrew scripts
This commit is contained in:
yosifkit 2014-09-22 18:06:59 -06:00
commit b3c64375be
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ repoDirs=()
declare -A repoDirTags=()
for line in "${lines[@]}"; do
tag="${line%%: *}"
repoDir="${line#*: }"
tag="$(echo "$line" | awk -F ': +' '{ print $1 }')"
repoDir="$(echo "$line" | awk -F ': +' '{ print $2 }')"
if [ -z "${repoDirTags[$repoDir]}" ]; then
repoDirs+=( "$repoDir" )
else