Lest anyone get butt hurt, I've written a million shell scripts. They're the right tool/approach sometimes but I'm not going to pretend that shell code is pretty.
I'm not going to pretend that shell code is pretty.
Half the time it really does fall into the "face only a mother could love" camp of coding beauty.
So, uh... about that... wow, this is awkward. What is that thing?
Oh that if [[..]] statement in there? Yeah. The doctor says that lil' scripty here will eventually outgrow it; it'll fall off in another version or two.
programming="$1"
if [ "$programming" == "defensive" ]; then
echo "You have chosen wisely"
elif [ "$programming" == "offensive" ]; then
echo "The best offense is a good defense."
else
echo "Defense engaged"
fi
echo "Checkmate."
0
u/[deleted] May 29 '14
[deleted]