From 8f9aa3c02d3ccb5886c6cbf0e0a5e0c89cf60e17 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 28 Sep 2017 18:55:25 +0200 Subject: [PATCH] bugfix @3 --- lib/api/source/deploy.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/api/source/deploy.php b/lib/api/source/deploy.php index 02b9904..a57d7a6 100755 --- a/lib/api/source/deploy.php +++ b/lib/api/source/deploy.php @@ -111,16 +111,22 @@ /* [5] Launch deploy script for each feature =========================================================*/ + slog('Deploying each feature', "api:deploy", 'update'); + /* (1) For each feature */ foreach($feature as $feat_name){ /* (2) Check if specific data in response */ - if( !isset($arr_r['feature'][$feat_name]) ) + if( !isset($arr_r['feature'][$feat_name]) ){ + slog("No data found for $eat_name", "api:deploy", 'update'); continue; + } /* (3) Check for feature deploy script */ - if( !file_exists(SOURCE_DIR."/feature/$feat_name/deploy") ) + if( !file_exists(SOURCE_DIR."/feature/$feat_name/deploy") ){ + slog("No deploy script found for $eat_name", "api:deploy", 'update'); continue; + } /* (4) Write useful exclusive data to tmp file */ file_put_contents(TMP_DIR."/$feat_name", json_encode($arr_r['feature'][$feat_name]));