aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2024-01-10 14:30:08 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2024-01-10 14:36:40 +0100
commit4b48be5c9429ccf7e54d34617361cf43b98f6589 (patch)
tree1d93c28e52c8f6c8018ea8badce17e167798e7bf
parentba0c7ca42c681f3cee936a0bee7f7c85f06794d9 (diff)
main/ca-certificates: fix shellcheck warning
Fix shellcheck errors: In APKBUILD line 36: for i in $(ls *.crt | sort); do ^------^ SC2012 (info): Use find instead of ls to better handle non-alphanumeric filenames. ^-- SC2035 (info): Use ./*glob* or -- *glob* so names with dashes won't become options.
-rw-r--r--main/ca-certificates/APKBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/ca-certificates/APKBUILD b/main/ca-certificates/APKBUILD
index 8ae0b6f9812..8ea876f8c4d 100644
--- a/main/ca-certificates/APKBUILD
+++ b/main/ca-certificates/APKBUILD
@@ -33,7 +33,7 @@ package() {
) > "$pkgdir"/etc/ca-certificates.conf
# generate the bundle in similar way as update-ca-certificates would do
- for i in $(ls *.crt | sort); do
+ find -- *.crt | sort | while read -r i; do
cat "$i"
printf "\n"
done > "$pkgdir"/etc/ssl/certs/ca-certificates.crt