Created
October 20, 2014 12:00
-
-
Save bitdivine/f040ba2f1507dac58455 to your computer and use it in GitHub Desktop.
apt-get update is SLOW (>1sec) so do it only if it hasn't been done in the last 10 hours.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(( ( $(date +%s) - $(date -d"$(stat -c %y /var/lib/apt/lists)" +%s) ) < 36000 )) || apt-get update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment