Keep mise cleanup compatible with escaped wrappers
Co-Authored-By: GPT-5.6 Sol <noreply@openai.com>
This commit is contained in:
1 parent
e090d01877
commit
a7a4a682e5
1 file changed
+11
@@ -33,6 +33,17 @@ mkdir -p "$HOME/.local/bin"
|
|||||||
printf -v package_arg '%q' "$package"
|
printf -v package_arg '%q' "$package"
|
||||||
printf -v bin_arg '%q' "$bin"
|
printf -v bin_arg '%q' "$bin"
|
||||||
|
|
||||||
|
# Keep values that are inert inside double quotes in the form existing migrations
|
||||||
|
# recognize, including mise backend options that %q would unnecessarily escape.
|
||||||
|
case "$package" in
|
||||||
|
*'$'* | *'`'* | *'"'* | *'\'* | *'!'* | *[[:cntrl:]]*) ;;
|
||||||
|
*) package_arg="\"$package\"" ;;
|
||||||
|
esac
|
||||||
|
case "$bin" in
|
||||||
|
*'$'* | *'`'* | *'"'* | *'\'* | *'!'* | *[[:cntrl:]]*) ;;
|
||||||
|
*) bin_arg="\"$bin\"" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
# These tools install and upgrade on first run, so mise's release cooldown would
|
# These tools install and upgrade on first run, so mise's release cooldown would
|
||||||
# hold a new version back for days after it ships. Exported rather than set on
|
# hold a new version back for days after it ships. Exported rather than set on
|
||||||
# the install line alone, so resolving the version to execute agrees with the
|
# the install line alone, so resolving the version to execute agrees with the
|
||||||
|
|||||||
Reference in new issue
Block a user