From c752adc4ac583408e7ded5a8f12851acf00e237e Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 7 Jun 1999 19:42:10 -0500 Subject: [svn-r1313] Neither SGI nor Solaris allows an empty 'then' body. Changed it to conditional statements. Tested fine in SGI and Solaris. --- bin/snapshot | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/snapshot b/bin/snapshot index e7c5c85..9a40f6f 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -48,13 +48,10 @@ if [ -d ${COMPARE}/previous ]; then if (diff -c ${COMPARE}/previous/MANIFEST ${COMPARE}/current/MANIFEST); then snapshot=no for src in `grep '^\.' ${COMPARE}/current/MANIFEST|expand|cut -f1 -d' '`; do - if (diff -I H5_VERS_RELEASE -I " released on " \ - ${COMPARE}/previous/$src ${COMPARE}/current/$src); then - else + diff -I H5_VERS_RELEASE -I " released on " \ + ${COMPARE}/previous/$src ${COMPARE}/current/$src || \ snapshot=yes # Don't break because we want to see all the diffs. - #break - fi done fi fi -- cgit v0.12