abemassry / wsend

wsend: The opposite of wget
https://wsend.net
GNU General Public License v3.0
79 stars 8 forks source link

Auto update issue #9

Closed vannell closed 10 years ago

vannell commented 10 years ago

When new version is detected, all relevant files are retrieved from raw.github.com/abemassry/master repositery:

downloadLastVersion() {
  wsDL=$(curl -s -o $wsend_base/wsend https://raw.github.com/abemassry/wsend/master/wsend)
  chmod +x $wsend_base/wsend
  #supporting files as well
  rmDL=$(curl -s -o $wsend_base/README.md https://raw.github.com/abemassry/wsend/master/README.md)
  cpDL=$(curl -s -o $wsend_base/COPYING https://raw.github.com/abemassry/wsend/master/COPYING)
  newLatestVersion=$(curl -s -o $wsend_base/version https://raw.github.com/abemassry/wsend/master/version)
}

Problem currently occurs now as raw.github.com is redirected to raw.githubusercontent.com

Issue can be fixed by adding -L option to curl, forcing it to follow redirection. But clearly, all users will need to manually update once it will be fixed.

vannell commented 10 years ago

Should be fixed in #10 now

abemassry commented 10 years ago

running the install command wget https://raw.github.com/abemassry/wsend/master/install.sh -O - | bash fixes the issue for current users (just tried it) Thanks!