Need help with mirror-slackware-current.sh
I downloaded Eric's mirror-slackware-current.sh script today and when I run this commandline, I get an error
Code:
mirror-slackware-current.sh -a x86_64 -i -l /tmp -p -o DVD -v Code:
[: 331: DVD: unexpected operator I'm using this on a different machine without a problem. Any thoughts? |
Are you running the script on a non-Slackware machine by chance?
|
Quote:
I guess that's a problem? |
Perhaps. On Slackware, /bin/sh is symlinked to bash. Eric's script uses /bin/sh in the shebang. On other systems, most notably Debian and Ubuntu, /bin/sh is symlinked to the dash shell and not bash. As such, some scripts may not work with dash.
Try entering this command to find out what /bin/sh is linked to on your system: ls -la $(which sh). The fix should be to simply edit the shebang in Eric's script and make it /bin/bash. |
Quote:
|
All times are GMT -5. The time now is 12:08 AM. |