iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
various fixes
[distro-setup]
/
filesystem
/
etc
/
apt
/
detect-http-proxy
diff --git
a/filesystem/etc/apt/detect-http-proxy
b/filesystem/etc/apt/detect-http-proxy
index 6f67003b9c21587598c500d91e82533a18419f09..6ffd0255b923f35cb30d4efa23807deb3ec56714 100755
(executable)
--- a/
filesystem/etc/apt/detect-http-proxy
+++ b/
filesystem/etc/apt/detect-http-proxy
@@
-28,7
+28,7
@@
if [[ ! -w /tmp ]]; then
exit 0
fi
modtime=$(stat -c %Y $f 2>/dev/null ) ||:
-if [[ $modtime ]] && (( $((
$(date +%s)
- modtime )) < 60*10 )); then
+if [[ $modtime ]] && (( $((
EPOCHSECONDS
- modtime )) < 60*10 )); then
echo DIRECT
exit 0
else