fix format

This commit is contained in:
neilpang 2019-03-13 20:49:26 +08:00
parent 77f96b386e
commit 0b04a7f17f
1 changed files with 7 additions and 8 deletions

15
acme.sh
View File

@ -4929,13 +4929,12 @@ _installcert() {
__read_password() { __read_password() {
unset _pp unset _pp
prompt="Enter Password:" prompt="Enter Password:"
while IFS= read -p "$prompt" -r -s -n 1 char while IFS= read -p "$prompt" -r -s -n 1 char; do
do if [ "$char" = $'\0' ]; then
if [ "$char" = $'\0' ]; then break
break fi
fi prompt='*'
prompt='*' _pp="$_pp$char"
_pp="$_pp$char"
done done
echo "$_pp" echo "$_pp"
} }
@ -4985,7 +4984,7 @@ _uninstall_win_taskscheduler() {
_debug "scheduler $_WINDOWS_SCHEDULER_NAME is not found." _debug "scheduler $_WINDOWS_SCHEDULER_NAME is not found."
else else
_info "Removing $_WINDOWS_SCHEDULER_NAME" _info "Removing $_WINDOWS_SCHEDULER_NAME"
echo SCHTASKS /delete /f /tn "$_WINDOWS_SCHEDULER_NAME" | cmd.exe >/dev/null echo SCHTASKS /delete /f /tn "$_WINDOWS_SCHEDULER_NAME" | cmd.exe >/dev/null
fi fi
} }