On Wed, 30 Sep 2020 20:37:01 +0100, RobH declaimed the
following:
>
>I managed to get rid of the error at line 15:
>if [ $revision = "1" ]
>by changing it to this:
>if [ $revision: = "1" ]
>so no unary operator error now.
>
Which is probably the wrong way to "fix" this.
The most likely reason for the "unary operator" message is that
$revision has no value, making the statement
if [ = "1" ]
I'm guessing here, but one possible solution is to make the line
if [ "$revision" = "1" ]
hence ensuring you have an empty STRING on the left, and not a missing
argument. IE:
if [ "" = "1"]
The REAL fix is to find out why the variable revision has not been set
to a value!
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|