Last active
December 17, 2017 23:58
-
-
Save jsuarezl/397b8dc20ac41a378f30ceea3e5fa3d7 to your computer and use it in GitHub Desktop.
Bash script to update plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
serversFolder=/home | |
# List of servers to update the plugin. | |
servers=(Survival Creative SkyBlock) | |
# Go to servers Folder | |
cd $serversFolder | |
# Download the latest version of the plugins | |
wget https://ci.nifheim.net/job/Coins/lastSuccessfulBuild/artifact/target/ | |
# Copy the compiled files to the server's plugin folder. | |
for server in ${servers[*]} | |
do | |
cp Coins.jar $server/plugins | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment