mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
vim-patch: fix default answers
This commit is contained in:
@@ -61,10 +61,10 @@ clean_files() {
|
|||||||
|
|
||||||
read -p "Delete these files (Y/n)? " -n 1 -r reply
|
read -p "Delete these files (Y/n)? " -n 1 -r reply
|
||||||
echo
|
echo
|
||||||
if [[ "${reply}" =~ ^[Yy]$ ]]; then
|
if [[ "${reply}" == n ]]; then
|
||||||
rm -- "${CREATED_FILES[@]}"
|
|
||||||
else
|
|
||||||
echo "You can use 'git clean' to remove these files when you're done."
|
echo "You can use 'git clean' to remove these files when you're done."
|
||||||
|
else
|
||||||
|
rm -- "${CREATED_FILES[@]}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -370,7 +370,7 @@ review_commit() {
|
|||||||
echo "✘ Could not detect the Vim patch number."
|
echo "✘ Could not detect the Vim patch number."
|
||||||
echo " This script assumes that the PR contains only commits"
|
echo " This script assumes that the PR contains only commits"
|
||||||
echo " with 'vim-patch:XXX' in their title."
|
echo " with 'vim-patch:XXX' in their title."
|
||||||
echo
|
echo
|
||||||
printf -- "$(head -n 4 <<< "${nvim_patch}")\n\n"
|
printf -- "$(head -n 4 <<< "${nvim_patch}")\n\n"
|
||||||
local reply
|
local reply
|
||||||
read -p "Continue reviewing (y/N)? " -n 1 -r reply
|
read -p "Continue reviewing (y/N)? " -n 1 -r reply
|
||||||
@@ -436,7 +436,7 @@ review_pr() {
|
|||||||
local pr_commit_url
|
local pr_commit_url
|
||||||
local reply
|
local reply
|
||||||
for pr_commit_url in "${pr_commit_urls[@]}"; do
|
for pr_commit_url in "${pr_commit_urls[@]}"; do
|
||||||
review_commit "${pr_commit_url}"
|
review_commit "${pr_commit_url}"
|
||||||
if [[ "${pr_commit_url}" != "${pr_commit_urls[-1]}" ]]; then
|
if [[ "${pr_commit_url}" != "${pr_commit_urls[-1]}" ]]; then
|
||||||
read -p "Continue with next commit (Y/n)? " -n 1 -r reply
|
read -p "Continue with next commit (Y/n)? " -n 1 -r reply
|
||||||
echo
|
echo
|
||||||
|
Reference in New Issue
Block a user