diff --git a/hornet.sh b/hornet.sh index 555dec0..b5b9d30 100755 --- a/hornet.sh +++ b/hornet.sh @@ -1,6 +1,28 @@ #!/bin/bash -read text +AUTO=false + +while getopts "a" flag; do + case "$flag" in + a) + shaws=("SHAW!" "HEAGALE" "GIT GUD" "Fren." "HahAH" "EDINO!") + length=${#shaws[@]} + random_index=$(( RANDOM % length )) + + text=${shaws[$random_index]} + AUTO=true + ;; + *) + echo "gatya" + ;; + esac +done + + +if [ $AUTO = false ] +then + read text +fi line=""