volta icon indicating copy to clipboard operation
volta copied to clipboard

bash: line 1: Redirecting: command not found

Open impossible98 opened this issue 2 years ago • 4 comments

[~/Downloads] # bash --version
GNU bash, version 3.2.57(1)-release (x86_64-QNAP-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

impossible98 avatar May 04 '22 22:05 impossible98

Hi @impossible98, I'm not sure I follow the issue. Can you share the specific command and output you're seeing? Is it possible you have an alias for curl that adds options changing the default behavior? Alternatively, do you have a firewall or something that is causing the wrong output from curl https://get.volta.sh?

We haven't changed the install script or command in quite some time, and definitely did a lot of testing to get it to the point where we didn't need to provide extra options to curl up-front, but I'd be happy to see if there's something that sticks out with the current command.

charlespierce avatar May 04 '22 23:05 charlespierce

Hi @impossible98, I'm not sure I follow the issue. Can you share the specific command and output you're seeing? Is it possible you have an alias for curl that adds options changing the default behavior? Alternatively, do you have a firewall or something that is causing the wrong output from curl https://get.volta.sh?

We haven't changed the install script or command in quite some time, and definitely did a lot of testing to get it to the point where we didn't need to provide extra options to curl up-front, but I'd be happy to see if there's something that sticks out with the current command.

sorry, if I install

curl http://get.volta.sh | bash

I will get

bash: line 1: Redirecting: command not found

impossible98 avatar May 04 '22 23:05 impossible98

get_latest_release() {
  curl --silent https://volta.sh/latest-version"
}

to

get_latest_release() {
  curl --silent -L https://volta.sh/latest-version"
}

impossible98 avatar May 04 '22 23:05 impossible98

If the error you're getting is in bash, I don't think changing the script itself will fix the underlying issue. It seems like you're getting a redirect response from the initial curl call, which is causing the output to be Redirecting instead of the actual script. However, nothing on the Volta servers does a redirect for either get.volta.sh or volta.sh/latest-version. Both are served directly (we made sure of that so we could simplify the install snippet as much as possible).

Is it possible you have a firewall or WIFI gateway that is intercepting your network requests and forcing a redirect?

charlespierce avatar May 05 '22 00:05 charlespierce