X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fetc%2Fapt%2Fdetect-http-proxy;h=6ffd0255b923f35cb30d4efa23807deb3ec56714;hb=fa5deaee2e0182ddfc7b39eea7ee2acedb259ddf;hp=6f67003b9c21587598c500d91e82533a18419f09;hpb=d6314e9fd15104b8b9db1f1c4b5f612a45d98a8a;p=distro-setup diff --git a/filesystem/etc/apt/detect-http-proxy b/filesystem/etc/apt/detect-http-proxy index 6f67003..6ffd025 100755 --- 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