Whamcloud - gitweb
add error handler in check_pc_match
authorwangdi <wangdi>
Thu, 24 Apr 2003 05:03:09 +0000 (05:03 +0000)
committerwangdi <wangdi>
Thu, 24 Apr 2003 05:03:09 +0000 (05:03 +0000)
lustre/kernel_patches/scripts/patchfns

index 288deeb..9335616 100644 (file)
@@ -71,7 +71,7 @@ is_applied()
 }
 check_pc_match()
 {
-       tmpfile=$(mktemp /tmp/p_XXXXXX)
+       tmpfile=$(mktemp /tmp/p_XXXXXX) || exit 1
        lsdiff --strip=1 $1 > $tmpfile 
        diff $2 $tmpfile > /dev/null
        if [ $? != 0 ]; then