summaryrefslogtreecommitdiffstats
path: root/bin/newer
diff options
context:
space:
mode:
Diffstat (limited to 'bin/newer')
-rwxr-xr-xbin/newer8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/newer b/bin/newer
index 6fd86aa..ed2743b 100755
--- a/bin/newer
+++ b/bin/newer
@@ -19,9 +19,11 @@
# Programmer: Albert Cheng
# Created Date: 2005/07/06
-if test -f $1 -a -f $2; then
- if test X != X`find $1 -newer $2 -print`; then
- exit 0
+if test $# -eq 2; then
+ if test -f $1 -a -f $2; then
+ if test X != X`find $1 -newer $2 -print`; then
+ exit 0
+ fi
fi
fi
exit 1