From fd88ee9c921750a0651ed3d44eaef3468a6b3b86 Mon Sep 17 00:00:00 2001
From: Wren Turkal <wt@penguintechs.org>
Date: Sun, 19 Jul 2020 01:55:06 -0700
Subject: [PATCH] Make clean work when a recipe has no recipe.sh.

Previously, one had to have a recipe.sh in all recipe directories in
order to run `make clean` successfully. This fixes that.

Signed-off-by: Wren Turkal <wt@penguintechs.org>
---
 cook.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cook.sh b/cook.sh
index 1bf746be0..c269574cd 100755
--- a/cook.sh
+++ b/cook.sh
@@ -520,7 +520,9 @@ then
 
         cd "${COOKBOOK_RECIPE}"
 
-        source recipe.sh
+        if [ -e recipe.sh ]; then
+            source recipe.sh
+        fi
 
         ops=()
         for arg in "${@:2}"
-- 
GitLab