From 0e19138fa1a12861a93209efefd747f674b5d79f Mon Sep 17 00:00:00 2001 From: Gurkirat Singh Date: Sat, 8 Jun 2019 03:17:39 +0530 Subject: [PATCH] delete line as it caused bug --- plugins/available/hosts.plugin.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/available/hosts.plugin.bash b/plugins/available/hosts.plugin.bash index f7fba2bf..e655d4c5 100755 --- a/plugins/available/hosts.plugin.bash +++ b/plugins/available/hosts.plugin.bash @@ -30,7 +30,7 @@ function ___hosts_remove { echo "Removed \""$ENTRY"\" from hosts file" else echo "Host "$1" not found" - exit 1 + fi } @@ -66,7 +66,7 @@ function hosts { if [[ $? == 0 ]] then ___hosts_help - exit 1 + else ___hosts_add $2 $3 fi @@ -79,7 +79,7 @@ function hosts { if [[ $? == 0 ]] then ___hosts_help - exit 1 + else ___hosts_remove $2 fi