diff options
| author | Carlo Sala <carlosalag@protonmail.com> | 2025-03-29 12:55:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-29 12:55:20 +0100 |
| commit | f81259fb344685e2dc8b67f8ad8764ccd4e8502e (patch) | |
| tree | f01fd258c25f7caf37fb05bd029296d1c79d0c19 | |
| parent | a78d006faa022a5104b542d7dec5a3439e72046e (diff) | |
| download | zsh-f81259fb344685e2dc8b67f8ad8764ccd4e8502e.tar.gz zsh-f81259fb344685e2dc8b67f8ad8764ccd4e8502e.tar.bz2 zsh-f81259fb344685e2dc8b67f8ad8764ccd4e8502e.zip | |
fix(cli): support `noexec` environments (#13042)
Closes #13032
| -rw-r--r-- | lib/cli.zsh | 2 | ||||
| -rwxr-xr-x | tools/upgrade.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/cli.zsh b/lib/cli.zsh index aed86e758..3b6308313 100644 --- a/lib/cli.zsh +++ b/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 { diff --git a/tools/upgrade.sh b/tools/upgrade.sh index c586610c4..1aa3d8af4 100755 --- a/tools/upgrade.sh +++ b/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 |
