fix(cli): Fallback to unknown when script.slug is missing in scripts list
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@serve.zone/moxytool',
|
||||
version: '1.4.0',
|
||||
version: '1.4.1',
|
||||
description: 'Proxmox administration tool for vGPU setup, VM management, and cluster configuration'
|
||||
}
|
||||
|
||||
@@ -273,7 +273,8 @@ export const runCli = async () => {
|
||||
if (otherScripts.length > 0) {
|
||||
logger.log('info', 'Other:');
|
||||
otherScripts.forEach(script => {
|
||||
logger.log('info', ` • ${script.slug.padEnd(25)} - ${script.name} (${script.type})`);
|
||||
const slug = script.slug || 'unknown';
|
||||
logger.log('info', ` • ${slug.padEnd(25)} - ${script.name} (${script.type})`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user