Skip to content

Commit

Permalink
Fix null err
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Jun 14, 2024
1 parent 9f736f3 commit 11528fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 11528fa

Please sign in to comment.