/dev/null || true'; } if (isSafeTmpPath($data['serverTmpPath'] ?? null)) { $commands[] = 'rm -f '.escapeshellarg($data['serverTmpPath']).' 2>/dev/null || true'; } if (filled($data['container'] ?? null)) { foreach (['containerTmpPath', 'scriptPath'] as $key) { if (isSafeTmpPath($data[$key] ?? null)) { $commands[] = 'docker exec '.escapeshellarg($data['container']).' rm -f '.escapeshellarg($data[$key]).' 2>/dev/null || true'; } } } $server = Server::find($data['serverId'] ?? null); if ($server && $commands !== []) { instant_remote_process($commands, $server, throwError: false); } } }