Browse Source

fix(cli): support `noexec` environments (#13042)

Closes #13032
Carlo Sala 3 weeks ago
parent
commit
f81259fb34
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lib/cli.zsh
  2. 1 1
      tools/upgrade.sh

+ 1 - 1
lib/cli.zsh

@@ -193,7 +193,7 @@ EOF
     return 1
   fi
 
-  "$ZSH/tools/changelog.sh" "$version" "${2:-}" "$format"
+  ZSH="$ZSH" command zsh -f "$ZSH/tools/changelog.sh" "$version" "${2:-}" "$format"
 }
 
 function _omz::plugin {

+ 1 - 1
tools/upgrade.sh

@@ -254,7 +254,7 @@ if LANG= git pull --quiet --rebase $remote $branch; then
 
     # Print changelog to the terminal
     if [[ $interactive == true && $verbose_mode == default ]]; then
-      "$ZSH/tools/changelog.sh" HEAD "$last_commit"
+      ZSH="$ZSH" command zsh -f "$ZSH/tools/changelog.sh" HEAD "$last_commit"
     fi
 
     if [[ $verbose_mode != silent ]]; then