zymp3/update.sh

22 lines
366 B
Bash
Raw Permalink Normal View History

2015-02-25 05:19:23 -06:00
#!/bin/bash
2015-03-03 23:54:49 -06:00
source config/zymp3.conf
2015-02-25 05:19:23 -06:00
if [[ $EUID -eq 0 ]]; then
echo "$0 : Do not run this script as root"
exit 1
fi
if [ -d .git ];then
git pull
2015-03-03 23:54:49 -06:00
if [ $? = 1 ];then
echo "Git was unable to complete successfully."
else
echo "Please run 'install.sh' to apply updated files"
fi
2015-02-25 05:19:23 -06:00
else
echo "This is not a git repo, aborting"
exit 0;
fi