diff --git a/src/killsw b/src/killsw index f25b449..c63460c 100644 --- a/src/killsw +++ b/src/killsw @@ -17,8 +17,8 @@ case "$cmd" in systemctl status killswitch.target ;; add) - if [[ -n "$2" && "$3" == "to" && -n "$5" ]]; then - echo "Called add $2 to $5" + if [[ -n "$2" && "$3" == "to" && -n "$4" ]]; then + echo "Called add $2 to $4" else echo "Usage: killsw add [service] to [group]" fi