Change
Code:
if ["$CURRENT_IP" == "$OLD_IP"]
to
Code:
if [ "$CURRENT_IP" == "$OLD_IP" ]
Believe it or not, this works because
is actually a command, and it is equivalent to
If you jam the IP address right up against the
[, you'll get an entirely different (and nonexistent, as you found out) command.
Hope this helps.