From f059e49d5c07d72e8a592d019edefd910e0e590b Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 15 Mar 2010 22:00:58 -0700 Subject: [PATCH] qa: fix snaptest1.sh --- qa/workunits/snaptest1.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qa/workunits/snaptest1.sh b/qa/workunits/snaptest1.sh index 47b3fc01fd346..cdb6c2852c666 100755 --- a/qa/workunits/snaptest1.sh +++ b/qa/workunits/snaptest1.sh @@ -5,7 +5,10 @@ echo 2 > file2 echo 3 > file3 mkdir .snap/snap1 echo 4 > file4 -if [ `ls` -eq `ls .snap/snap1` ]; then +now=`ls` +then=`ls .snap/snap1` +rmdir .snap/snap1 +if [ "$now" = "$then" ]; then echo live and snap contents are identical? false -fi \ No newline at end of file +fi -- 2.39.5