f81259fb344685e2dc8b67f8ad8764ccd4e8502e
- Author
- Carlo Sala <carlosalag@protonmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(cli): support `noexec` environments (#13042)
Closes #13032
Diff
1diff --git a/lib/cli.zsh b/lib/cli.zsh
2index aed86e75815b4f750499d32fe247eba25802c8fb..3b630831385ac2ea60358ad326afef9959f14912 100644
3--- a/lib/cli.zsh
4+++ b/lib/cli.zsh
5@@ -193,7 +193,7 @@ EOF
6 return 1
7 fi
8
9- "$ZSH/tools/changelog.sh" "$version" "${2:-}" "$format"
10+ ZSH="$ZSH" command zsh -f "$ZSH/tools/changelog.sh" "$version" "${2:-}" "$format"
11 }
12
13 function _omz::plugin {
14diff --git a/tools/upgrade.sh b/tools/upgrade.sh
15index c586610c422889403760c49f2483558d7d59bde7..1aa3d8af47b3747cf59e6d3bda803d7905aa480a 100755
16--- a/tools/upgrade.sh
17+++ b/tools/upgrade.sh
18@@ -254,7 +254,7 @@ if LANG= git pull --quiet --rebase $remote $branch; then
19
20 # Print changelog to the terminal
21 if [[ $interactive == true && $verbose_mode == default ]]; then
22- "$ZSH/tools/changelog.sh" HEAD "$last_commit"
23+ ZSH="$ZSH" command zsh -f "$ZSH/tools/changelog.sh" HEAD "$last_commit"
24 fi
25
26 if [[ $verbose_mode != silent ]]; then