]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 a84104a901aa7b4bd11c4de959b9952f2047fdbd..c6c41ada390833fe09db915a4bb1302e42db1bac 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