testing: Only attempt to copy patches if there are any
authorTobias Brunner <tobias@strongswan.org>
Tue, 18 Sep 2018 13:13:23 +0000 (15:13 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 21 Nov 2018 13:32:24 +0000 (14:32 +0100)
testing/scripts/build-rootimage

index a84104a..c6c41ad 100755 (executable)
@@ -55,8 +55,11 @@ do_on_exit umount $LOOPDIR/root/shared
 
 echo "Installing software from source"
 RECPDIR=$DIR/recipes
+if [ -d "$RECPDIR/patches" ]
+then
+       execute "cp -r $RECPDIR/patches $LOOPDIR/root/shared/compile" 0
+fi
 RECIPES=`ls $RECPDIR/*.mk | xargs -n1 basename`
-execute "cp -r $RECPDIR/patches $LOOPDIR/root/shared/compile" 0
 for r in $RECIPES
 do
        cp $RECPDIR/$r ${LOOPDIR}/root/shared/compile