Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
add update script
Browse files Browse the repository at this point in the history
  • Loading branch information
jedie committed Aug 27, 2010
1 parent 99d9e0c commit f40931b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions update.sh
@@ -0,0 +1,25 @@
#!/bin/bash

echo

function verbose_eval {
echo
echo _____________________________________________________________________
echo $*
echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
eval $*
echo ---------------------------------------------------------------------
echo
}

if [ -e .git ];
then
echo ".git directory found"
verbose_eval git pull origin master
elif [ -e .svn ];
then
echo ".svn directory found"
verbose_eval svn update
else
echo "no .git or .svn directory found. Can't update"
fi

0 comments on commit f40931b

Please sign in to comment.