From 37a7224c29c209659b0078b6f4bbf8a46b509b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 22 Aug 2012 21:25:24 +0200 Subject: easy_e17.sh: say if no patch dir found --- easy_e17.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/easy_e17.sh b/easy_e17.sh index 83273b0..d4f21f5 100755 --- a/easy_e17.sh +++ b/easy_e17.sh @@ -1365,9 +1365,13 @@ pkg_total=`echo "$updated_packages" | wc -w` # patches open_header "Apply local patches" cd $src_path -for patch in $(ls -1 $src_patch_path); do - echo " - apply $patch" && patch -p 1 -N -r - < $src_patch_path/$patch -done +if [ -d $src_patch_path ]; then + for patch in $(ls -1 $src_patch_path); do + echo " - apply $patch" && patch -p 1 -N -r - < $src_patch_path/$patch + done +else + echo " - no $src_patch_path directory" +fi # build/install open_header "Compilation & installation" -- cgit v1.1-2-g2b99