static update location for automated updates

This commit is contained in:
q
2016-06-16 17:43:15 +03:00
parent ac312a024b
commit bca368c461

4
rc
View File

@@ -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
}