You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -332,12 +332,18 @@ private function site_php_container( $site ) {
332
332
returnstr_replace( '.', '', $site ) . '_php_1';
333
333
}
334
334
335
-
privatefunctionsemi_colon_check( $command ) {
336
-
// Semicolons in commands do not work for now due to limitation of INI style config ofelia uses
335
+
/**
336
+
* Ensures given command will not create problem with INI syntax
337
+
*/
338
+
privatefunctionvalidate_command( $command ) {
339
+
// Semicolons and Hash(#) in commands do not work for now due to limitation of INI style config ofelia uses
337
340
// See https://github.com/EasyEngine/cron-command/issues/4
338
341
if ( strpos( $command, ';' ) !== false ) {
339
342
EE::error( 'Command chaining using `;` - semi-colon is not supported currently. You can either use `&&` or `||` or creating a second cron job for the chained command.' );
340
343
}
344
+
if ( strpos( $command, '#' ) !== false ) {
345
+
EE::error( 'EasyEngine does not support commands with #' );
0 commit comments