diff --git a/misc/core.func b/misc/core.func index b0b7cbfa11..04224cd8b8 100644 --- a/misc/core.func +++ b/misc/core.func @@ -828,7 +828,7 @@ cleanup_lxc() { # Ruby gem if command -v gem &>/dev/null; then $STD gem cleanup || true; fi # Composer (PHP) - if command -v composer &>/dev/null; then COMPOSER_ALLOW_SUPERUSER=1 $STD composer clear-cache || true; fi + if command -v composer &>/dev/null; then COMPOSER_ALLOW_SUPERUSER=1 && $STD composer clear-cache || true; fi if command -v journalctl &>/dev/null; then $STD journalctl --vacuum-time=10m || true