From 653c93e41633dde79450a18014a49247314a404a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= <jeremy@asynk.ch>
Date: Thu, 23 Feb 2012 21:18:19 +0100
Subject: easy_e17.sh check ewk_build_dir existence on clean

---
 easy_e17.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/easy_e17.sh b/easy_e17.sh
index 8e4bca3..70b4399 100755
--- a/easy_e17.sh
+++ b/easy_e17.sh
@@ -1044,7 +1044,7 @@ function compile ()
     if [ $package_clean -ge 1 ]; then
         [ -e config.cache ] && rm config.cache
         if [ "$name" == "ewebkit" ]; then
-            if [ $package_clean -eq 1 ]; then
+            if [ $package_clean -eq 1 -a -e "$ewk_build_dir" ]; then
                 cd $ewk_build_dir
                 run_command "$name" "$path" "clean" "clean  : " "$mode" "$make -j $threads clean"
                 if [ ! -e "$status_path/$name.noerrors" ]; then
-- 
cgit v1.1-2-g2b99