Code:
BASE="8"
if [ ${BASE} -eq 8 ]
then echo "octal"
fi
LIGHT="green"
if [ ${LIGHT} -eq "green" ]
then echo "go"
fi
You may find your code easier to read if you indent and change structure a bit. The above is difficult at best for me to understand. Most scripting I've seen is done in the following way for bash.
Code:
BASE=8
if [[ "$BASE" == 8 ]] ; then
echo "octal"
fi
LIGHT=green
if [[ "$LIGHT" == green ]] ; then
echo "go"
fi
Indentation makes things a world easier to read imo. Also semicolons with your then and do parts easier to again... imo. This is how pretty much every script I've ever seen is done.