From 0131eed89a86c11d9223c056f280bf8bd5760f7e Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 17 May 2016 20:43:13 +0200 Subject: Fix logic errors in 'if' statements when looking for wildcard files. --- make_slackware_live.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 81b96ea..5a82823 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1830,12 +1830,12 @@ else fi # Copy our stockpile of add-on modules into place: -if [ -f ${LIVE_TOOLDIR}/addons/*.sxz ]; then +if ls ${LIVE_TOOLDIR}/addons/*.sxz 1>/dev/null 2>&1 ; then cp ${LIVE_TOOLDIR}/addons/*.sxz ${LIVE_MOD_ADD}/ fi # If we have optionals, copy those too: -if [ -f ${LIVE_TOOLDIR}/optional/*.sxz ]; then +if ls ${LIVE_TOOLDIR}/optional/*.sxz 1>/dev/null 2>&1 ; then cp ${LIVE_TOOLDIR}/optional/*.sxz ${LIVE_MOD_OPT}/ fi @@ -1844,7 +1844,7 @@ if [ "$LIVEDE" != "XFCE" -a "$LIVEDE" != "SLACKWARE" ]; then # however the SLACKWARE ISO should not have any non-Slackware content. # You can 'cheat' when building the SLACKWARE ISO by copying the graphics # drivers into the 'optional' directory yourself. - if [ -f ${LIVE_TOOLDIR}/graphics/*${KVER}-*.sxz ]; then + if ls ${LIVE_TOOLDIR}/graphics/*${KVER}-*.sxz 1>/dev/null 2>&1 ; then # Add custom (proprietary) graphics drivers: echo "-- Adding binary GPU drivers supporting kernel ${KVER}." cp ${LIVE_TOOLDIR}/graphics/*${KVER}-*.sxz ${LIVE_MOD_OPT}/ -- cgit v1.2.3