[Fix] nvm_resolve_local_alias: avoid using variable as printf format string

Using a variable as the format string means `%` characters in alias names would be interpreted as format specifiers.
Use `%b` format with the variable as an argument to safely interpret `\n` escapes.

Bug introduced in 9b91734f0b.
This commit is contained in:
Jordan Harband
2026-03-14 10:16:25 -07:00
parent 3c48015986
commit d2fca5f0ec
5 changed files with 43 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/sh
echo v0.0.1 > ../../../../alias/test-%s-alias
echo test-%s-alias > ../../../../alias/test-pct-chain