From: Mike Frysinger Date: Wed, 17 Aug 2011 15:34:05 +0000 (-0400) Subject: only copy files if they exist X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d1eee076afdf48c3a55a33e32f2be6346b91d7f8;p=home.git only copy files if they exist --- diff --git a/.bin/custom-chroot b/.bin/custom-chroot index 9416b0b..0e30f71 100755 --- a/.bin/custom-chroot +++ b/.bin/custom-chroot @@ -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}