Update src/killsw

This commit is contained in:
2026-03-24 19:32:30 +01:00
parent f03e1daf9f
commit ef94b91fa9

View File

@@ -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