more checkig for update

This commit is contained in:
q
2016-02-26 21:04:44 +02:00
parent b6c2c572ad
commit b81ef017eb

View File

@@ -337,10 +337,12 @@ function foldermenu_prompt {
}
function _tools-update {
touch "$TOOLSPATH"/.lastupdate
pushd "$TOOLSPATH" > /dev/null
hg pull -u 2>&1
popd > /dev/null
[[ -w "$TOOLSPATH" ]] || return
touch "$TOOLSPATH"/.lastupdate
[[ -w "$TOOLSPATH"/.lastupdate ]] || return
pushd "$TOOLSPATH" > /dev/null
hg pull -u 2>&1
popd > /dev/null
}
function qbg {