]> git.e2factory.org Git - e2factory.git/commitdiff
build.sh: do not attempt to copy nonexisting files
authorFabian Godehardt <fg@emlix.com>
Thu, 13 Sep 2012 12:16:18 +0000 (14:16 +0200)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:12 +0000 (19:07 +0100)
Signed-off-by: Fabian Godehardt <fg@emlix.com>
local/make/build.sh

index 4045a73fede6580cb836e73ded50a3d8d10b7a2c..5d16064f8502a2bd1ef8a1e195e1f27169429545 100644 (file)
@@ -59,7 +59,9 @@ for d in $DEPEND ; do
 done
 # install result stuff
 mkdir -p $chroot_path/tmp/e2/{script,init,env,dep,build,out,root}
-cp -v proj/init/* $chroot_path/tmp/e2/init
+if [ ! proj/init/* = 'proj/init/*' ]; then
+       cp -v proj/init/* $chroot_path/tmp/e2/init
+fi
 cp -v res/$RESULT/{build-driver,buildrc,build-script} \
                                $chroot_path/tmp/e2/script/
 cp -v res/$RESULT/{builtin,env} $chroot_path/tmp/e2/env/