update only on interactive sessions

This commit is contained in:
Ville Rantanen
2015-07-20 13:30:17 +03:00
parent 2acc585d37
commit 5fba065568

3
rc
View File

@@ -11,6 +11,9 @@ export PATH
. "$TOOLSPATH"/qcd_function
# Update self weekly
[[ -t 0 ]] || return
[[ -t 1 ]] || return
[[ -t 2 ]] || return
[[ -f "$TOOLSPATH"/.lastupdate ]] || touch -t 0101010101 "$TOOLSPATH"/.lastupdate 2> /dev/null
[[ -f "$TOOLSPATH"/.lastupdate ]] || return