Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Syntax error

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
redstorm1969
Posts: 1
Joined: 2022-05-12 22:33

Syntax error

#1 Post by redstorm1969 »

I am new to Debian and am trying to set up hyperledger the code works fine until I execute then gives the following:
./prereqs-debian.sh: line 1: syntax error near unexpected token `newline'
./prereqs-debian.sh: line 1: `<!doctype html>'

the code reads as follows:
curl -O https://hyperledger.github.io/composer/latest/pre
reqs-debian.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3237 100 3237 0 0 20617 0 --:--:-- --:--:-- --:--:-- 20750
-bash: reqs-debian.sh: command not found
redstorm1969@penguin:~$ chmod u+x prereqs-debian.sh
redstorm1969@penguin:~$ ./prereqs-debian.sh
./prereqs-debian.sh: line 1: syntax error near unexpected token `newline'
./prereqs-debian.sh: line 1: `<!doctype html>'

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: sybtax error

#2 Post by FreewheelinFrank »

A script declared as an HTML document?

https://stackoverflow.com/questions/378 ... -from-bash

Post Reply