Просмотр исходного кода

* fix a stupid typo in apt.cron.daily

Michael Vogt лет назад: 21
Родитель
Сommit
43835916cf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      debian/apt.cron.daily

+ 1 - 1
debian/apt.cron.daily

@@ -121,7 +121,7 @@ check_size_constraints()
 	    # check for MinAge of the file
 	    if [ ! $MinAge -eq 0 ]; then 
 		# check both ctime and mtime 
-		mtime=$(date -c %Y $file)
+		mtime=$(stat -c %Y $file)
 		ctime=$(stat -c %Z $file)
 		if [ $mtime -gt $ctime ]; then
 		    delta=$(($now-$mtime))