HEGALE
This commit is contained in:
@@ -1,6 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
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=""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user