0

I can't seem to run portsnap anymore, there seems to be an error and /usr/ports/sysutils/portsnap doesn't exist for a reinstallation.

The error I'm getting when running portsnap is:

/usr/sbin/portsnap: line 882: syntax error near unexpected token 'newline' 
/usr/sbin/portsnap: line 882: ' if !'

Can anyone help me out here.

Stefan Lasiewski
  • 22,949
  • 38
  • 129
  • 184
Sandeep Bansal
  • 125
  • 1
  • 5

1 Answers1

1

Your error seems to indicate that some other shell is running the script and not sh.

Have a look at this thread: http://lists.gnu.org/archive/html/bug-bash/2008-06/msg00078.html

What happens if you do sh /usr/sbin/portsnap fetch?

Michael
  • 468
  • 2
  • 13