diff --git a/.config/zsh/autoload/git/git-checkout-worktree b/.config/zsh/autoload/git/git-checkout-worktree index 5203680..b2438ca 100755 --- a/.config/zsh/autoload/git/git-checkout-worktree +++ b/.config/zsh/autoload/git/git-checkout-worktree @@ -49,7 +49,7 @@ fi trap ' errc=$? - <&2 printf "Exiting abnormally. Check and possibly remove \"%s\" manually.\n" "'"$WORKTREE_PATH"'" + printf >&2 "Exiting abnormally. Check and possibly remove \"%s\" manually.\n" "'"$WORKTREE_PATH"'" return $errc ' INT QUIT TERM EXIT @@ -77,7 +77,7 @@ unset GIT_PREFIX # Restart the shell (forcefully interactive) until the worktree is removed until [[ ! -e "$WORKTREE_PATH" ]] || git worktree remove "$WORKTREE_PATH"; do [[ -t 0 ]] || - >&2 printf "Dropping into interactive shell to resolve conflicts\n" + printf >&2 "Dropping into interactive shell to resolve conflicts\n" "$SHELL" -i && errc=$? || errc=$? (( !errc )) || echo "shell exited with $errc" done