ydns / bash-updater

YDNS Bash Updater Script
GNU General Public License v3.0
80 stars 43 forks source link

Error on syntaxis #30

Open Darkbrass opened 9 years ago

Darkbrass commented 9 years ago

I got an error when run updater.sh

updater.sh: line 124: [: ==: unary operator expected

If i run a with verbose option(-V) I get: ./updater.sh: line 124: [: ==: unary operator expected
[2015/05/05T02:10:01] Current IP: 127.0.0.1
::1
192.168.1.5
fe80::222:4dff:fe9d:e15e
)src="./pages/login.js" type="text/javascript">pt>text/css"/>et' type='text/css'>'text/css'> 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

commx commented 9 years ago

Make sure to use bash. The "==" comparisation operator is not supported in most other shells.

A fixed version of the script is already done, but not committed yet.

eMPee584 commented 9 years ago

..friendly reminder to upload the script with bashisms removed :+1: :grinning: