From: David Marec Date: Sun, 4 Nov 2018 21:24:01 +0000 (+0100) Subject: bugfix: install * failure if directory found X-Git-Url: http://popeye.lapinbilly.eu/git/?a=commitdiff_plain;h=refs%2Fheads%2Fmbr;p=zfsinstaller.git bugfix: install * failure if directory found --- diff --git a/zfsinstall.sh b/zfsinstall.sh index cf8eb51..c68d60a 100644 --- a/zfsinstall.sh +++ b/zfsinstall.sh @@ -138,7 +138,11 @@ COPYCAT="/etc/rc.conf.d" cd ${SCRIPTBASE}${COPYCAT} || exit 1 install -o root -g wheel -d -m 0755 ${DESTDIR}${COPYCAT} || exit 1 echo installing files into ${COPYCAT} -install -o root -g wheel -m 0644 * ${DESTDIR}${COPYCAT}/ +for I in *; do + if [ -r "${I}" -a -f ${I} ]; then + install -o root -g wheel -m 0644 ${I} ${DESTDIR}${COPYCAT}/ + fi +done COPYCAT="/etc/rc.conf.d/network" cd ${SCRIPTBASE}${COPYCAT} || exit 1 install -o root -g wheel -d -m 0755 ${DESTDIR}${COPYCAT} || exit 1