bugfix @3

This commit is contained in:
xdrm-brackets 2017-09-28 18:55:25 +02:00
parent 3f0720408c
commit 8f9aa3c02d
1 changed files with 8 additions and 2 deletions

View File

@ -111,16 +111,22 @@
/* [5] Launch deploy script for each feature /* [5] Launch deploy script for each feature
=========================================================*/ =========================================================*/
slog('Deploying each feature', "api:deploy", 'update');
/* (1) For each feature */ /* (1) For each feature */
foreach($feature as $feat_name){ foreach($feature as $feat_name){
/* (2) Check if specific data in response */ /* (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; continue;
}
/* (3) Check for feature deploy script */ /* (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; continue;
}
/* (4) Write useful exclusive data to tmp file */ /* (4) Write useful exclusive data to tmp file */
file_put_contents(TMP_DIR."/$feat_name", json_encode($arr_r['feature'][$feat_name])); file_put_contents(TMP_DIR."/$feat_name", json_encode($arr_r['feature'][$feat_name]));