This commit is contained in:
Ville Rantanen
2015-07-20 08:30:31 +03:00
parent 94dda28425
commit a895b90030

2
rc
View File

@@ -11,7 +11,7 @@ export PATH
. "$TOOLSPATH"/qcd_function . "$TOOLSPATH"/qcd_function
# Update self weekly # Update self weekly
[[ -f "$TOOLSPATH"/.lastupdate ]] || touch -t 0101010101 "$TOOLSPATH"/.lastupdate 2>&1 > /dev/null [[ -f "$TOOLSPATH"/.lastupdate ]] || touch -t 0101010101 "$TOOLSPATH"/.lastupdate 2> /dev/null
[[ -f "$TOOLSPATH"/.lastupdate ]] || return [[ -f "$TOOLSPATH"/.lastupdate ]] || return
TOOLS_LASTUPDATE=$(( $( date +%s ) - $( stat -c %Y "$TOOLSPATH"/.lastupdate ) )) TOOLS_LASTUPDATE=$(( $( date +%s ) - $( stat -c %Y "$TOOLSPATH"/.lastupdate ) ))