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:
Denis 'GNUtoo' Carikli 2024-11-22 15:01:27 +01:00 committed by Adrien 'neox' Bourmault
parent 05c09293d9
commit 06583e699c
Signed by: neox
GPG Key ID: 57BC26A3687116F6
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ install_packages()
# Users might run Trisquel in various languages, and it is easier to
# grep for 'Installed' in the language being used than properly setup
# 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
if pkcon resolve ${package} | grep "^${installed}" 2>&1>/dev/null ; then