[neon/neon/keyring/Neon/release] debian: stop after the first match, multiple matches confuse the comparison

Carlos De Maine null at kde.org
Thu Sep 26 13:47:35 BST 2024


Git commit be25a0a846afb1fc2ab03d7d8c183be6d2fd5eaf by Carlos De Maine.
Committed on 26/09/2024 at 12:47.
Pushed by carlosdem into branch 'Neon/release'.

stop after the first match, multiple matches confuse the comparison

M  +1    -1    debian/neon-keyring.postinst

https://invent.kde.org/neon/neon/keyring/-/commit/be25a0a846afb1fc2ab03d7d8c183be6d2fd5eaf

diff --git a/debian/neon-keyring.postinst b/debian/neon-keyring.postinst
index 7278806..29d6c2e 100644
--- a/debian/neon-keyring.postinst
+++ b/debian/neon-keyring.postinst
@@ -13,7 +13,7 @@ fi
 if [ -e /etc/apt/sources.list.d/neon.sources ]; then
 	NEONARCHIVE_RELEASE=$(grep -o http://archive.neon.kde.org/release /etc/apt/sources.list.d/neon.sources)
 elif [ -e /etc/apt/sources.list.d/neon.list ]; then
-	NEONARCHIVE_RELEASE=$(grep -o http://archive.neon.kde.org/release /etc/apt/sources.list.d/neon.list)
+	NEONARCHIVE_RELEASE=$(grep -o -m 1 http://archive.neon.kde.org/release /etc/apt/sources.list.d/neon.list)
 fi
 if [ "$NEONARCHIVE_RELEASE" = "http://archive.neon.kde.org/release" ];
     then NEONARCHIVE="release";


More information about the Neon-commits mailing list