diff --git a/qcd_function b/qcd_function index 0b8c0e6..5c2ec4c 100644 --- a/qcd_function +++ b/qcd_function @@ -343,7 +343,7 @@ function foldermenu_prompt { function _tools-update { # update self - [[ -z "$TOOLSPATH" ]] || return + [[ -z "$TOOLSPATH" ]] && return [[ -w "$TOOLSPATH" ]] || return "$TOOLSPATH"/rc -u }