Syntax error while running bash script
up vote
0
down vote
favorite
I'm trying to run a script in terminal as follows:
bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )
When I run it I get the following error:
-sh: syntax error near unexpected token `('
Anyone know why??
Thanks xx
command-line bash
add a comment |
up vote
0
down vote
favorite
I'm trying to run a script in terminal as follows:
bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )
When I run it I get the following error:
-sh: syntax error near unexpected token `('
Anyone know why??
Thanks xx
command-line bash
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to run a script in terminal as follows:
bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )
When I run it I get the following error:
-sh: syntax error near unexpected token `('
Anyone know why??
Thanks xx
command-line bash
I'm trying to run a script in terminal as follows:
bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )
When I run it I get the following error:
-sh: syntax error near unexpected token `('
Anyone know why??
Thanks xx
command-line bash
command-line bash
edited Nov 15 at 6:04
muru
134k19282482
134k19282482
asked Nov 15 at 6:03
dworn21
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
<(...) aka process substitution is bash syntax, and you're executing this in sh (note that your error starts with -sh). It seems your login shell is sh, not bash, for some reason. The simplest way here would be to switch to bash, and then run the command:
$ bash
$ bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )
Ask your system admin how to change your login shell to bash.
Thanks - still getting the error though
– dworn21
Nov 15 at 6:16
2
Did you actually run bash? Are you using Ubuntu?
– muru
Nov 15 at 6:17
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
<(...) aka process substitution is bash syntax, and you're executing this in sh (note that your error starts with -sh). It seems your login shell is sh, not bash, for some reason. The simplest way here would be to switch to bash, and then run the command:
$ bash
$ bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )
Ask your system admin how to change your login shell to bash.
Thanks - still getting the error though
– dworn21
Nov 15 at 6:16
2
Did you actually run bash? Are you using Ubuntu?
– muru
Nov 15 at 6:17
add a comment |
up vote
2
down vote
<(...) aka process substitution is bash syntax, and you're executing this in sh (note that your error starts with -sh). It seems your login shell is sh, not bash, for some reason. The simplest way here would be to switch to bash, and then run the command:
$ bash
$ bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )
Ask your system admin how to change your login shell to bash.
Thanks - still getting the error though
– dworn21
Nov 15 at 6:16
2
Did you actually run bash? Are you using Ubuntu?
– muru
Nov 15 at 6:17
add a comment |
up vote
2
down vote
up vote
2
down vote
<(...) aka process substitution is bash syntax, and you're executing this in sh (note that your error starts with -sh). It seems your login shell is sh, not bash, for some reason. The simplest way here would be to switch to bash, and then run the command:
$ bash
$ bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )
Ask your system admin how to change your login shell to bash.
<(...) aka process substitution is bash syntax, and you're executing this in sh (note that your error starts with -sh). It seems your login shell is sh, not bash, for some reason. The simplest way here would be to switch to bash, and then run the command:
$ bash
$ bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )
Ask your system admin how to change your login shell to bash.
answered Nov 15 at 6:07
muru
134k19282482
134k19282482
Thanks - still getting the error though
– dworn21
Nov 15 at 6:16
2
Did you actually run bash? Are you using Ubuntu?
– muru
Nov 15 at 6:17
add a comment |
Thanks - still getting the error though
– dworn21
Nov 15 at 6:16
2
Did you actually run bash? Are you using Ubuntu?
– muru
Nov 15 at 6:17
Thanks - still getting the error though
– dworn21
Nov 15 at 6:16
Thanks - still getting the error though
– dworn21
Nov 15 at 6:16
2
2
Did you actually run bash? Are you using Ubuntu?
– muru
Nov 15 at 6:17
Did you actually run bash? Are you using Ubuntu?
– muru
Nov 15 at 6:17
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093070%2fsyntax-error-while-running-bash-script%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown