From d0aca3874c69cb060ca57b129f4aa55224fd63a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Wed, 8 Oct 2014 15:39:10 +0200 Subject: [PATCH] Update common.sh --- common.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common.sh b/common.sh index d634b413f3..4d1df1c099 100644 --- a/common.sh +++ b/common.sh @@ -56,7 +56,7 @@ if [[ $LINUXSOURCE == "linux-sunxi" ]] ; then fi # cubox / hummingboard if [[ $LINUXSOURCE == "linux-cubox-next" ]] ; then - if [ -z "$(patch --dry-run -t -p1 < ../../lib/patch/hb-i2c-spi.patch | grep previ)" ]; then + if [ -z "$(patch --dry-run -t -p1 < $SRC/lib/patch/hb-i2c-spi.patch | grep previ)" ]; then patch -p1 < $SRC/lib/patch/hb-i2c-spi.patch fi fi @@ -114,7 +114,9 @@ else git checkout master fi cd $DEST/$LINUXSOURCE -patch --batch -N -p1 < $SRC/lib/patch/small_lcd_drivers.patch +if [ -z "$(patch --dry-run -t -p1 < $SRC/lib/patch/small_lcd_drivers.patch | grep previ)" ]; then +patch -p1 < $SRC/lib/patch/small_lcd_drivers.patch +fi }