blob: d38684d158b4c4beaa6c1c347783135b1abf2a9b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
file_name=`mktemp /tmp/XXXXXX`
file_ctime=`/usr/bin/stat -f%c ${file_name}`
/usr/bin/touch $file_name
file_mtime=`/usr/bin/stat -f%m ${file_name}`
if [ "$file_ctime" -gt "$file_mtime" ]; then
echo "file's mod time ($file_mtime) should be later than the file's creation time ($file_ctime)"
exit 1
fi
exit 0
|