[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
- [PATCH v1 00/10] Parches for GNU Boot 0.1 RC4., Denis 'GNUtoo' Carikli, 2024/11/22
- [PATCH v1 03/10] dependencies: trisquel: website: Add graphviz to fix website package build., Denis 'GNUtoo' Carikli, 2024/11/22
- [PATCH v1 01/10] dependencies: trisquel: fix awk call.,
Denis 'GNUtoo' Carikli <=
- [PATCH v1 02/10] dependencies: trisquel: replace ttf-unifont with fonts-unifont., Denis 'GNUtoo' Carikli, 2024/11/22
- [PATCH v1 04/10] dependencies: pureos: website: Add graphviz to fix website package build., Denis 'GNUtoo' Carikli, 2024/11/22
- [PATCH v1 05/10] resources: git: fix configuration with older git versions., Denis 'GNUtoo' Carikli, 2024/11/22
- [PATCH v1 06/10] website: status: 0.1 RC3: fix typos., Denis 'GNUtoo' Carikli, 2024/11/22
- [PATCH v1 07/10] website: status: 0.1 RC3: set ThinkPad X200 as tested., Denis 'GNUtoo' Carikli, 2024/11/22
- [PATCH v1 08/10] website: status: 0.1 RC3: D945GCLF2D fails to boot., Denis 'GNUtoo' Carikli, 2024/11/22
- [PATCH v1 10/10] dependencies: pureos: replace libtool by libtool-bin, Denis 'GNUtoo' Carikli, 2024/11/22
- [PATCH v1 09/10] website: status: 0.1 RC1, RC2: D945GCLF2D fails to boot., Denis 'GNUtoo' Carikli, 2024/11/22
- Re: [PATCH v1 00/10] Parches for GNU Boot 0.1 RC4., Denis 'GNUtoo' Carikli, 2024/11/23