Skip to content

Instantly share code, notes, and snippets.

@AbrarSyed
Created April 28, 2014 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AbrarSyed/11382516 to your computer and use it in GitHub Desktop.
Save AbrarSyed/11382516 to your computer and use it in GitHub Desktop.
Update forgecraft
#! /bin/bash
game=some/place #/home/abrarsyed/pahicraft/ForgeCraft2_mc
seafile=some/other/place #/home/abrarsyed/pahicraft/instances/ForgeCraft2
# just to be sure
mkdir -p $game/config $game/mods $game/hats $game/resourcepacks
#sync mods and configs and hats
rsync -r --delete $seafile/mods $game
rsync -r --delete $seafile/config $game
rsync -r --delete $seafile/hats $game
# copy over client mods if desired
cp -rf $seafile/mods\ \(client,\ optional\)/* $game/mods
# dont forget the servers dat
cp -f $seafile/../servers.dat $game/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment