chris01010
Programmer
Hi,
I'm having trouble with a script that i'm writing. Basically i'm trying to get my script to check a pre set variable in an IF statement and based on it's value follow a course of action.
i.e.
Variable $node is equal to "trial"
if
$node=trial
then
env=e
else
echo "This environment is only applicable to Trialling"
fi
At present it does seem to read the variable in to the statement. Any ideas??
Cheers
Chris
I'm having trouble with a script that i'm writing. Basically i'm trying to get my script to check a pre set variable in an IF statement and based on it's value follow a course of action.
i.e.
Variable $node is equal to "trial"
if
$node=trial
then
env=e
else
echo "This environment is only applicable to Trialling"
fi
At present it does seem to read the variable in to the statement. Any ideas??
Cheers
Chris