From a7a4a682e530d257b1a149589381946822bc64ab Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 7 Sep 2026 02:24:40 -0400 Subject: [PATCH] Keep mise cleanup compatible with escaped wrappers Co-Authored-By: GPT-5.6 Sol --- bin/omarchy-mise-install | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/omarchy-mise-install b/bin/omarchy-mise-install index 8bec3f31..356c3324 100755 --- a/bin/omarchy-mise-install +++ b/bin/omarchy-mise-install @@ -33,6 +33,17 @@ mkdir -p "$HOME/.local/bin" printf -v package_arg '%q' "$package" 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 # 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