rename update functions

This commit is contained in:
Ville Rantanen
2017-04-06 11:00:55 +03:00
parent 55c1c9aecc
commit 1b10be0bbb
2 changed files with 5 additions and 3 deletions

6
rc
View File

@@ -11,17 +11,17 @@ export PATH
. "$TOOLSPATH"/qcd_function . "$TOOLSPATH"/qcd_function
[[ -f "$TOOLSPATH"/tsv/tsvkit.sh ]] && . "$TOOLSPATH"/tsv/tsvkit.sh &>/dev/null [[ -f "$TOOLSPATH"/tsv/tsvkit.sh ]] && . "$TOOLSPATH"/tsv/tsvkit.sh &>/dev/null
function _tools-reload { function _q-tools-reload {
# reload self # reload self
[[ -z "$TOOLSPATH" ]] && return [[ -z "$TOOLSPATH" ]] && return
source "$TOOLSPATH"/rc source "$TOOLSPATH"/rc
} }
function _tools-update { function _q-tools-update {
# update self # update self
[[ -z "$TOOLSPATH" ]] && return [[ -z "$TOOLSPATH" ]] && return
[[ -w "$TOOLSPATH" ]] || return [[ -w "$TOOLSPATH" ]] || return
"$TOOLSPATH"/rc -u "$TOOLSPATH"/rc -u
_tools-reload _q-tools-reload
} }

View File

@@ -88,6 +88,8 @@ def main():
else: else:
import traceback import traceback
print traceback.format_exc() print traceback.format_exc()
except KeyboardInterrupt:
pass
if __name__ == "__main__": if __name__ == "__main__":
main() main()