OSDN Git Service

[fix] : Fixed SC2045
authorhayao <shun819.mail@gmail.com>
Thu, 2 Jul 2020 06:29:10 +0000 (15:29 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 2 Jul 2020 06:29:10 +0000 (15:29 +0900)
stable/alterlinux-wallpapers/PKGBUILD

index 1ff18f9..e70cd9a 100644 (file)
@@ -39,7 +39,7 @@ package() {
 
     # Install images
     install -Dm644 "${srcdir}/alter.png" "${pkgdir}/usr/share/backgrounds/alter.png"
-    for image in $(ls ${srcdir}/alter-*.png); do
+    for image in "${srcdir}"/alter-*.png; do
        install -Dm644 "${srcdir}/$(basename ${image})" "${pkgdir}/usr/share/backgrounds/$(basename ${image})"
     done
 
@@ -54,7 +54,7 @@ package() {
 
     # Install hooks
     local hook
-    for hook in $(ls ${srcdir}/*.hook); do
-        install -Dm644 "${srcdir}/$(basename ${hook})" "${pkgdir}/usr/share/libalpm/hooks/$(basename ${hook})"
+    for hook in "${srcdir}"/*.hook; do
+        install -Dm644 ${srcdir}/$(basename ${hook})" "${pkgdir}/usr/share/libalpm/hooks/$(basename ${hook})"
     done
 }