gnuboot-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v1 01/10] dependencies: trisquel: fix awk call.


From: Denis 'GNUtoo' Carikli
Subject: [PATCH v1 01/10] dependencies: trisquel: fix awk call.
Date: Fri, 22 Nov 2024 15:01:27 +0100

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 <GNUtoo@cyberdimension.org>
---
 resources/dependencies/trisquel | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resources/dependencies/trisquel b/resources/dependencies/trisquel
index ed85fbd9..68a81b4d 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
-- 
2.46.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]