summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xeasy_e17.sh10
1 files 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"