🔧 Fix variable scope issue by reassigning config outside of try block
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user