aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2016-12-22 03:17:01 +0100
committerMarco Hinz <mh.codebro@gmail.com>2016-12-22 03:17:01 +0100
commit66936d78668e32b633b98b1b5660f7d18b9b7f8c (patch)
treee1cd13026afe94cdc6579debee13f9cd7e181699
parent33319b1bf012652cd04e47bf9d5ac216408703e2 (diff)
downloadrneovim-66936d78668e32b633b98b1b5660f7d18b9b7f8c.tar.gz
rneovim-66936d78668e32b633b98b1b5660f7d18b9b7f8c.tar.bz2
rneovim-66936d78668e32b633b98b1b5660f7d18b9b7f8c.zip
vim-patch: fix default answers
-rwxr-xr-xscripts/vim-patch.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index b5d795424b..88fb3cae04 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -61,10 +61,10 @@ clean_files() {
read -p "Delete these files (Y/n)? " -n 1 -r reply
echo
- if [[ "${reply}" =~ ^[Yy]$ ]]; then
- rm -- "${CREATED_FILES[@]}"
- else
+ if [[ "${reply}" == n ]]; then
echo "You can use 'git clean' to remove these files when you're done."
+ else
+ rm -- "${CREATED_FILES[@]}"
fi
}
@@ -370,7 +370,7 @@ review_commit() {
printf -- "$(head -n 4 <<< "${nvim_patch}")\n\n"
local reply
read -p "Continue reviewing (y/N)? " -n 1 -r reply
- if [[ ! "${reply}" =~ ^[Nn]$ ]]; then
+ if [[ "${reply}" == y ]]; then
echo
return
fi
@@ -436,7 +436,7 @@ review_pr() {
if [[ "${pr_commit_url}" != "${pr_commit_urls[-1]}" ]]; then
read -p "Continue with next commit (Y/n)? " -n 1 -r reply
echo
- if [[ ! "${reply}" =~ ^[Yy]$ ]]; then
+ if [[ "${reply}" == n ]]; then
break
fi
fi