From 59bdecbf138936f1eb61c9616d7270d92a5deac5 Mon Sep 17 00:00:00 2001 From: Giancarlo Razzolini Date: Wed, 9 Oct 2019 18:34:33 -0300 Subject: Change the script to abort on errors and quote the glob on compgen --- libalpm/scripts/mkinitcpio-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libalpm') 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 -- cgit v1.2.3-24-g4f1b