13 lines
224 B
Plaintext
13 lines
224 B
Plaintext
|
# must be able to download a new version
|
||
|
if [[ ! -O .. && $EUID -ne 0 ]]
|
||
|
then
|
||
|
error "Please run as root or the owner of this directory."
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
# if it's the git version, just git pull
|
||
|
if [[ -d .git ]]
|
||
|
then
|
||
|
git pull
|
||
|
fi
|