From ab8c1c574acf0eef792cdeb7816372a041d44329 Mon Sep 17 00:00:00 2001 From: David Marec Date: Sun, 4 Nov 2018 22:24:01 +0100 Subject: [PATCH] bugfix: install * failure if directory found --- zfsinstall.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.47.0