static update location for automated updates
This commit is contained in:
4
rc
4
rc
@@ -14,9 +14,9 @@ function _self_update() {
|
||||
touch "$TOOLSPATH"/.lastupdate
|
||||
pushd "$TOOLSPATH" > /dev/null
|
||||
[[ "$1" = "-u" ]] && {
|
||||
hg pull -u
|
||||
hg pull -u https://bitbucket.org/MoonQ/tools
|
||||
} || {
|
||||
timeout 5 hg pull -u > /dev/null 2>&1
|
||||
timeout 5 hg pull -u hg pull https://bitbucket.org/MoonQ/tools > /dev/null 2>&1
|
||||
}
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user