From 06583e699c375cb8382b6ddc2bc3e9a325d7cbdf Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Fri, 22 Nov 2024 15:01:27 +0100 Subject: [PATCH] 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 94118b896a5d44914cfdbf065abc04699e5d5885 ("dependencies: Trisquel 10: Fix script for non-english locales."). Signed-off-by: Denis 'GNUtoo' Carikli Acked-by: Adrien 'neox' Bourmault --- resources/dependencies/trisquel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/dependencies/trisquel b/resources/dependencies/trisquel index ed85fbd..68a81b4 100755 --- a/resources/dependencies/trisquel +++ b/resources/dependencies/trisquel @@ -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