update only on interactive sessions
This commit is contained in:
3
rc
3
rc
@@ -11,6 +11,9 @@ export PATH
|
|||||||
. "$TOOLSPATH"/qcd_function
|
. "$TOOLSPATH"/qcd_function
|
||||||
|
|
||||||
# Update self weekly
|
# 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 ]] || touch -t 0101010101 "$TOOLSPATH"/.lastupdate 2> /dev/null
|
||||||
[[ -f "$TOOLSPATH"/.lastupdate ]] || return
|
[[ -f "$TOOLSPATH"/.lastupdate ]] || return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user