bugfix: install * failure if directory found mbr
authorDavid Marec <DavidMarec@users.noreply.github.com>
Sun, 4 Nov 2018 21:24:01 +0000 (22:24 +0100)
committerDavid Marec <DavidMarec@users.noreply.github.com>
Sun, 4 Nov 2018 21:24:01 +0000 (22:24 +0100)
zfsinstall.sh

index cf8eb515175ffe482f7f5d6903b454b35161d63d..c68d60af06481357b930abbec3bf679dfc88ba93 100644 (file)
@@ -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