Keith2 / lowendscript-ng

20 stars 10 forks source link

Syntax error #1

Closed free-weaver closed 9 years ago

free-weaver commented 12 years ago

Hi Keith,

just tried to run your script on a Debian Squeeze VPS with nginx 1.0.14 and got the following:

setup-debian.sh: line 4: syntax error near unexpected token newline' setup-debian.sh: line 4:<!DOCTYPE html>'

thanks

Keith2 commented 12 years ago

There's no <!DOCTYPE html> in the script, has this been added when
downloading it?

The start of the script should be

!/bin/bash

function check_install { if [ -z "which "$1" 2>/dev/null" ] then executable=$1 shift while [ -n "$1" ] do DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends
-q -y install "$1" print_info "$1 installed for $executable" shift done else print_warn "$2 already installed" fi }

Does this match your copy?

On Sat, 31 Mar 2012 16:20:53 +0100, free-weaver
reply@reply.github.com
wrote:

Hi Keith,

just tried to run your script on a Debian Squeeze VPS with nginx 1.0.14
and got the following:

setup-debian.sh: line 4: syntax error near unexpected token newline' setup-debian.sh: line 4:<!DOCTYPE html>'

thanks


Reply to this email directly or view it on GitHub: https://github.com/Keith2/lowendscript-ng/issues/1

free-weaver commented 12 years ago

I think github is to blame, I did a wget on the link in your readme and it did grab setup-debian.sh however, there is only html in it (I think it is one of the github pages :) Perhaps it isn't a good idea to suggest that link for wget.

I have now copied the code directly into a file and on to my vps. It ran with no problems.

Thank you.