Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

easyinstall.sh error #1782

Closed
RBBrewer opened this issue Feb 28, 2015 · 2 comments
Closed

easyinstall.sh error #1782

RBBrewer opened this issue Feb 28, 2015 · 2 comments

Comments

@RBBrewer
Copy link

I was trying to install the precompiled minecraft server, MCServer, for raspberry pi using the following command from the user manual:

curl -s https://raw.githubusercontent.com/mc-server/MCServer/master/easyinstall.sh | sh

The easyinstall.sh script downloaded and ran but gave an error saying that the curl command had no URL specified. I found that changing "arm_" to just arm_ in the case statement in easyinstall.sh fixed it.

Original code:

...
case $PLATFORM in 
        "i686") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20x86/lastSuccessfulBuild/artifact/MCServer.tar" ;;
        "x86_64") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20x64/lastSuccessfulBuild/artifact/MCServer.tar" ;;
        # Assume that all arm devices are a raspi for now.
        "arm*") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20armhf/lastSuccessfulBuild/artifact/MCServer/MCServer.tar"
esac

Fixed code:

...
case $PLATFORM in 
        "i686") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20x86/lastSuccessfulBuild/artifact/MCServer.tar" ;;
        "x86_64") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20x64/lastSuccessfulBuild/artifact/MCServer.tar" ;;
        # Assume that all arm devices are a raspi for now.
        arm*) DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20armhf/lastSuccessfulBuild/artifact/MCServer/MCServer.tar"
esac

I modified the original download command to download just the easyinstall.sh script as follows:

curl -s https://raw.githubusercontent.com/mc-server/MCServer/master/easyinstall.sh > easyinstall.sh

I then made the above edit to easyinstall.sh, made it executable using chmod, and ran it successfully.

@bearbin
Copy link
Member

bearbin commented Mar 1, 2015

Ok. Will fix. Bash is strange.

@bearbin bearbin closed this as completed in f53e225 Mar 1, 2015
@bearbin
Copy link
Member

bearbin commented Mar 1, 2015

Thanks for the report BTW, it's good to see someone actually using my scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants