From d1eee076afdf48c3a55a33e32f2be6346b91d7f8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 17 Aug 2011 11:34:05 -0400 Subject: [PATCH] only copy files if they exist --- .bin/custom-chroot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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} -- 2.39.5