diff options
author | Giancarlo Razzolini <grazzolini@archlinux.org> | 2019-10-09 23:34:33 +0200 |
---|---|---|
committer | Giancarlo Razzolini <grazzolini@archlinux.org> | 2019-10-09 23:34:33 +0200 |
commit | 59bdecbf138936f1eb61c9616d7270d92a5deac5 (patch) | |
tree | d03bf2ae7c673ce1273f6d48ff85b7adc46efdff | |
parent | dfa609a6ee5f75af1aa5f94d331aea60b6d076ca (diff) | |
download | mkinitcpio-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-install | 4 |
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 |