commit d72e014b5aae578af259cdaae52a4aee8bfed627 parent 26d07c515bb0160c1df66397262dd4e1930cba7b Author: hhvn <dev@hhvn.uk> Date: Wed, 13 Oct 2021 15:42:11 +0100 b/kill: selective murder Diffstat:
M | bin/kill | | | 10 | ++++++++-- |
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/bin/kill b/bin/kill @@ -1,8 +1,14 @@ #!/bin/bash -[ -z $1 ] && echo "usage: kill <person>" && exit 1 +[ "$@" = "hhvn" ] && echo "NO!" && exit + +case "$@" in + hhvn) echo NO!; exit ;; + marvvin) echo "I was never alive"; exit ;; + "") echo "usage: kill <person>"; exit 1 ;; +esac [ ! -f /tmp/sudo ] && echo "kill: operation not permitted" && exit -echo "$1: surprise!" +echo "$@: surprise!" cat data/ascii/kill