diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..775611a --- /dev/null +++ b/update.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +if [[ $EUID -eq 0 ]]; then + echo "$0 : Do not run this script as root" + exit 1 +fi + +if [ -d .git ];then + git pull +else + echo "This is not a git repo, aborting" + exit 0; +fi