]> git.wh0rd.org Git - home.git/commitdiff
only copy files if they exist
authorMike Frysinger <vapier@gentoo.org>
Wed, 17 Aug 2011 15:34:05 +0000 (11:34 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:39 +0000 (15:36 -0400)
.bin/custom-chroot

index 9416b0bd2f3b05e0fc0370ce9128eda4f6f022d2..0e30f71738916bc02816d368e2ee415c117432a7 100755 (executable)
@@ -71,7 +71,9 @@ home="
 for f in \
        $(printf 'etc/%s ' ${etc}) \
 ; do
-       cp /${f} ${f}
+       if [ -e "/${f}" ] ; then
+               cp /${f} ${f}
+       fi
 done
 for f in ${home} ; do
        cp ~/${f} root/${f}