Merge pull request #44 from infosiftr/more-canonical-parsing
Add more canonical "manifest line parsing" based on bashbrew scripts
This commit is contained in:
commit
b3c64375be
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue