TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: DENNIS LEE BIEBER
date: 2020-10-01 01:16:00
subject: Re: Error with ./install.

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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.