Account for spaces in repository label (#1348)

Signed-off-by: Jérémy Ruffet <jeremy.ruffet@i-run.fr>
This commit is contained in:
Jérémy Ruffet 2019-06-05 12:03:06 +02:00 committed by Ben Kochie
parent c39f6749fc
commit 03f0b4db9f
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@
upgrades="$(/usr/bin/apt-get --just-print upgrade \ upgrades="$(/usr/bin/apt-get --just-print upgrade \
| /usr/bin/awk -F'[()]' \ | /usr/bin/awk -F'[()]' \
'/^Inst/ { sub("^[^ ]+ ", "", $2); sub("\\[", " ", $2); '/^Inst/ { sub("^[^ ]+ ", "", $2); gsub(" ","",$2);
sub(" ", "", $2); sub("\\]", "", $2); print $2 }' \ sub("\\[", " ", $2); sub("\\]", "", $2); print $2 }' \
| /usr/bin/sort \ | /usr/bin/sort \
| /usr/bin/uniq -c \ | /usr/bin/uniq -c \
| awk '{ gsub(/\\\\/, "\\\\", $2); gsub(/\"/, "\\\"", $2); | awk '{ gsub(/\\\\/, "\\\\", $2); gsub(/\"/, "\\\"", $2);