summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-09 23:34:33 +0200
committerGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-09 23:34:33 +0200
commit59bdecbf138936f1eb61c9616d7270d92a5deac5 (patch)
treed03bf2ae7c673ce1273f6d48ff85b7adc46efdff
parentdfa609a6ee5f75af1aa5f94d331aea60b6d076ca (diff)
downloadmkinitcpio-59bdecbf138936f1eb61c9616d7270d92a5deac5.tar.gz
mkinitcpio-59bdecbf138936f1eb61c9616d7270d92a5deac5.tar.xz
Change the script to abort on errors and quote the glob on compgen
-rw-r--r--libalpm/scripts/mkinitcpio-install4
1 files changed, 2 insertions, 2 deletions
diff --git a/libalpm/scripts/mkinitcpio-install b/libalpm/scripts/mkinitcpio-install
index 215640b..ab952a7 100644
--- a/libalpm/scripts/mkinitcpio-install
+++ b/libalpm/scripts/mkinitcpio-install
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -e
args=()
all=0
@@ -26,7 +26,7 @@ if (( all )); then
args=(-P)
fi
-if ! compgen -G /etc/mkinitcpio.d/*.preset > /dev/null; then
+if ! compgen -G /etc/mkinitcpio.d/"*.preset" > /dev/null; then
exit 0
fi