found this link http://www.shellcheck.net/ at irc forum #bash
it is marvelous. it wil check your code as you type it in and tell you what you need or what is wrong.
so far got this
if ifconfig wlan0; then tor-browser &
want a script to put in Startup that will only launch tor browser after an internet wlan0 connection is available. if tor browser is launched before the internet connection is established it just get stuck at connecting.
my above code still needs a loop to check again after no internet connection detected and the if condition hasnt been tested without a connection. anyhow just messing., but do recommend the shellcheck site. better than guessing in geany