From 11528faa8a2048157e039be61f716e9ee434959a Mon Sep 17 00:00:00 2001 From: Wildan M Date: Fri, 14 Jun 2024 17:13:47 +0700 Subject: [PATCH] Fix null err --- src/executor/runnersub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/executor/runnersub.js b/src/executor/runnersub.js index 3ae77b8..8dae577 100644 --- a/src/executor/runnersub.js +++ b/src/executor/runnersub.js @@ -445,7 +445,7 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec, for (const cmd of config.commands) { if (typeof cmd === 'string') { await sshExec(cmd); - } else if (typeof cmd === 'object') { + } else if (typeof cmd === 'object' && cmd !== null) { if (cmd.command) { await sshExec(cmd.command, cmd.write === false ? false : true); } else if (cmd.feature) {