fix(cli): support noexec environments

Closes #13032
This commit is contained in:
Carlo Sala 2025-03-29 12:45:48 +01:00
commit 3534a60dec
No known key found for this signature in database
GPG key ID: DA6FB450C1A4FE9A
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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