projects
/
zfsinstaller.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
231a7d4
)
bugfix: install * failure if directory found
mbr
author
David Marec
<DavidMarec@users.noreply.github.com>
Sun, 4 Nov 2018 21:24:01 +0000
(22:24 +0100)
committer
David Marec
<DavidMarec@users.noreply.github.com>
Sun, 4 Nov 2018 21:24:01 +0000
(22:24 +0100)
zfsinstall.sh
patch
|
blob
|
history
diff --git
a/zfsinstall.sh
b/zfsinstall.sh
index cf8eb515175ffe482f7f5d6903b454b35161d63d..c68d60af06481357b930abbec3bf679dfc88ba93 100644
(file)
--- 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