[Gllug] Simple Bash Script
anthony.newman at ossified.net
Mon Jun 2 10:15:58 UTC 2008
william pink wrote:
> Well I have made the suggested adjustments but it still doesn't appear
> to work
> if [ "$RESULT -eq $TRUE" ]; then
> echo "test failed!"
> else echo "No problem to report"
Here's your problem; you're testing the truth of a quoted string, rather
than evaluating their equality. Remove the quotes, or quote both strings
separately, but not the whole expression.
if [ $RESULT -eq $TRUE ]; then
Gllug mailing list - Gllug at gllug.org.uk
More information about the GLLUG