Commit 34fb8359 authored by 段孔乐's avatar 段孔乐

fix confirm bug

parent 09ee7d39
......@@ -16,11 +16,11 @@ do
case $input in
[yY][eE][sS]|[yY])
return 1
return 0
;;
[nN][oO]|[nN])
return 0
return 1
;;
*)
......@@ -54,7 +54,7 @@ function initFilebeatService(){
if [ "$(systemctl list-units |grep -c $serviceName)" -gt 0 ]; then \
red "$serviceName service exist";\
if [ "$(confirm 'are you want override it?')" == 0 ]; then \
if confirm "are you want override it?"; then \
green "exit"
exit 0;
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment