mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(scripts): reject short flag audit severity values
This commit is contained in:
@@ -907,7 +907,7 @@ export async function runPnpmAuditProd({
|
||||
}
|
||||
|
||||
function readSeverityValue(value, optionName) {
|
||||
if (value === undefined || value === "" || value.startsWith("--")) {
|
||||
if (value === undefined || value === "" || value.startsWith("-")) {
|
||||
throw new Error(`${optionName} requires a value`);
|
||||
}
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user