dependencies: trisquel: fix awk call.
Without that fix running the script results in the following error:
# ./resources/dependencies/trisquel
+ ./resources/dependencies/trisquel
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
packagekit-tools is already the newest version (1.2.5-2ubuntu2+11.0trisquel1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
awk: cmd. line:1: {print
awk: cmd. line:1: ^ unexpected newline or end of string
The issue was introduced in the commit
94118b896a
("dependencies: Trisquel 10:
Fix script for non-english locales.").
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
This commit is contained in:
parent
05c09293d9
commit
06583e699c
|
@ -33,7 +33,7 @@ install_packages()
|
||||||
# Users might run Trisquel in various languages, and it is easier to
|
# Users might run Trisquel in various languages, and it is easier to
|
||||||
# grep for 'Installed' in the language being used than properly setup
|
# grep for 'Installed' in the language being used than properly setup
|
||||||
# everything to use the right locale for the given situation.
|
# everything to use the right locale for the given situation.
|
||||||
installed="$(pkcon resolve packagekit-tools | tail -n1 | awk {print $1})"
|
installed="$(pkcon resolve packagekit-tools | tail -n1 | awk '{print $1}')"
|
||||||
|
|
||||||
for package in $@ ; do
|
for package in $@ ; do
|
||||||
if pkcon resolve ${package} | grep "^${installed}" 2>&1>/dev/null ; then
|
if pkcon resolve ${package} | grep "^${installed}" 2>&1>/dev/null ; then
|
||||||
|
|
Loading…
Reference in New Issue