Fix apt.sh syntax (#811)
This patch fixes: ./apt.test: command substitution: line 19: syntax error near unexpected token `|' ./apt.test: command substitution: line 19: ` | /usr/bin/sort | /usr/bin/uniq -c | awk '{ gsub(/\\\\/,
This commit is contained in:
parent
29ac809e48
commit
2978728b00
|
@ -7,7 +7,7 @@
|
||||||
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); sub("\\[", " ", $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);
|
||||||
|
|
Loading…
Reference in New Issue