From 5fba06556814fa4a01922a71093ebb6d05db155c Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Mon, 20 Jul 2015 13:30:17 +0300 Subject: [PATCH] update only on interactive sessions --- rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rc b/rc index 857746d..e35d887 100644 --- a/rc +++ b/rc @@ -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