Skip to content

Instantly share code, notes, and snippets.

@nocksock
Created January 26, 2012 12:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nocksock/1682635 to your computer and use it in GitHub Desktop.
Save nocksock/1682635 to your computer and use it in GitHub Desktop.
Quick and Dirrrty Update-Script for kirby

How To?

Simply put the update.sh into the root of your kirby-project. next to kirby/, content/, site/ and other folders. Make it executable with chmod a+x update.sh and execute it with ./update.sh everytime you want to update your kirbycms to the latest version - from within the command line of course.

Requirements

Though it is obvious: you need git.

#!/usr/bin/env sh
# very quick and dirrrty updatescript
echo "Update started"
git clone https://github.com/bastianallgeier/kirbycms.git &&
rm -rf kirby &&
mv kirbycms/kirby . &&
rm -rf kirbycms
echo "Update finished"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment