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 { function _tools-update {
touch "$TOOLSPATH"/.lastupdate [[ -w "$TOOLSPATH" ]] || return
pushd "$TOOLSPATH" > /dev/null touch "$TOOLSPATH"/.lastupdate
hg pull -u 2>&1 [[ -w "$TOOLSPATH"/.lastupdate ]] || return
popd > /dev/null pushd "$TOOLSPATH" > /dev/null
hg pull -u 2>&1
popd > /dev/null
} }
function qbg { function qbg {