Skip to content

Commit

Permalink
Small fix for restore. If the user enters the number of restore, that…
Browse files Browse the repository at this point in the history
… does not exist, cli throws error (#2995)
  • Loading branch information
GermanBluefox authored Dec 31, 2024
1 parent e30e55c commit f1ba026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/lib/setup/setupBackup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1254,9 +1254,9 @@ export class BackupRestore {
console.log(`${backup} or ${backup.replace(`${this.BACKUP_POSTFIX}.tar.gz`, '')} or ${i}`),
);
}
} else {
console.log(`host.${this.hostname} Using backup file ${name}`);
return { exitCode: EXIT_CODES.INVALID_ARGUMENTS, objects: this.objects, states: this.states };
}
console.log(`host.${this.hostname} Using backup file ${name}`);
}

name = name.toString().replace(/\\/g, '/');
Expand Down

0 comments on commit f1ba026

Please sign in to comment.