🔧 Fix variable scope issue by reassigning config outside of try block

This commit is contained in:
2026-01-30 04:59:50 +00:00
parent 34a84bd574
commit ed7ee9e857

View File

@@ -277,10 +277,11 @@ async function deploy() {
const ssh = new NodeSSH();
let previousImage = null;
let containerExisted = false;
let config = null;
try {
// Parse arguments
const config = parseArgs();
config = parseArgs();
const isLocal = config.target === 'local';
const sshConfig = SSH_HOSTS[config.target];