I'm having some problems with bash scripting. I want the script to find the "Firefox.app" directory, but things that work when I type them in the shell interpreter don't work in the script.
ffxapp=`find /Applications/ -name "Firefox.app" -print | tee firefox.location`
When I type that into the shell, it works ($ffxapp == "/Applications/Firefox.app")
. In a script, it doesn't ($ffxapp == "")
. I am so confused.