From c184f81883300d874a4cadd378934f09f204c27e Mon Sep 17 00:00:00 2001 From: Teddysun Date: Fri, 30 May 2014 11:22:33 +0800 Subject: [PATCH] Add uninstall confirm default input --- shadowsocks-libev-debian.sh | 2 +- shadowsocks-libev.sh | 2 +- shadowsocks-nodejs.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shadowsocks-libev-debian.sh b/shadowsocks-libev-debian.sh index 72f9779..aba241e 100644 --- a/shadowsocks-libev-debian.sh +++ b/shadowsocks-libev-debian.sh @@ -163,7 +163,7 @@ function install(){ # Uninstall Shadowsocks-libev function uninstall_shadowsocks_libev(){ - printf "Are you sure uninstall Shadowsocks-libev? (y/n) : " + printf "Are you sure uninstall Shadowsocks-libev? (y/n) " printf "\n" read -p "(Default: n):" answer if [ -z $answer ]; then diff --git a/shadowsocks-libev.sh b/shadowsocks-libev.sh index 414f8a0..bbe917c 100644 --- a/shadowsocks-libev.sh +++ b/shadowsocks-libev.sh @@ -177,7 +177,7 @@ function install(){ # Uninstall Shadowsocks-libev function uninstall_shadowsocks_libev(){ - printf "Are you sure uninstall shadowsocks_libev? (y/n) : " + printf "Are you sure uninstall shadowsocks_libev? (y/n) " printf "\n" read -p "(Default: n):" answer if [ -z $answer ]; then diff --git a/shadowsocks-nodejs.sh b/shadowsocks-nodejs.sh index 11d8ebc..c889f91 100644 --- a/shadowsocks-nodejs.sh +++ b/shadowsocks-nodejs.sh @@ -189,7 +189,7 @@ function install(){ # Uninstall Shadowsocks-nodejs function uninstall_shadowsocks_nodejs(){ - printf "Are you sure uninstall Shadowsocks-nodejs? (y/n) : " + printf "Are you sure uninstall Shadowsocks-nodejs? (y/n) " printf "\n" read -p "(Default: n):" answer if [ -z $answer ]; then