[neon/ubuntu-core] /: Properly find the snaps

Kevin Ottens null at kde.org
Wed Apr 3 10:55:24 BST 2024


Git commit b15e0ae235f7cc85cbfe753de39bda668614d24e by Kevin Ottens.
Committed on 03/04/2024 at 09:54.
Pushed by ervin into branch 'master'.

Properly find the snaps

ls would rightfully complain if the directory was empty

M  +1    -1    create-snap-list.sh

https://invent.kde.org/neon/ubuntu-core/-/commit/b15e0ae235f7cc85cbfe753de39bda668614d24e

diff --git a/create-snap-list.sh b/create-snap-list.sh
index 37e968a..01c45c2 100755
--- a/create-snap-list.sh
+++ b/create-snap-list.sh
@@ -12,6 +12,6 @@ JQ_SCRIPT="
 cat $INPUT | jq "$JQ_SCRIPT" > $OUTPUT
 
 if [ $GRADE = "dangerous" ]; then
-  ls ./local-snaps/*.snap >> $OUTPUT
+  find ./local-snaps -name '*.snap' >> $OUTPUT
 fi
 


More information about the Neon-commits mailing list