quick bash question

Jamie Sparks (jsparks@psrw.com)
Tue, 18 Feb 1997 11:59:10 -0500 (EST)


Hello,

Can anyone tell me the correct syntax for the following?

#! /bin/bash

if [ some_string="blah" ]; then
this=that
some_other_thing=another_thing
else
this=yet_another_thing
some_other_thing="syntax_is_tedious"
fi

My scripts don't puke when there's only one command after the 'then'
and again after the 'else', but when I add more than one (as in the
above), i get an error after the last line of the script.

any help would be appreciated, thanks

jamie