switch to length fn

This commit is contained in:
2026-01-18 10:35:05 -06:00
parent e695810e64
commit 98cb2c3239
31 changed files with 184 additions and 185 deletions

View File

@@ -17,7 +17,7 @@ var target_pkg = null
var prune = false
var dry_run = false
for (var i = 0; i < args.length; i++) {
for (var i = 0; i < length(args); i++) {
if (args[i] == '--prune') {
prune = true
} else if (args[i] == '--dry-run') {
@@ -99,7 +99,7 @@ if (dry_run) {
shop.remove(p)
})
log.console("Removed " + text(packages_to_remove.length) + " package(s).")
log.console("Removed " + text(length(packages_to_remove)) + " package(s).")
}
$stop()