2533fc
diff --git a/tests/dbtests/dbtests.sh b/tests/dbtests/dbtests.sh
2533fc
--- a/tests/dbtests/dbtests.sh
2533fc
+++ b/tests/dbtests/dbtests.sh
2533fc
@@ -165,28 +165,28 @@ dbtest_main()
2533fc
     # opens immediately see the files are readonly.  As a
2533fc
     # workaround we open the files once first.  (Bug 185074)
2533fc
     if [ "${OS_ARCH}" = "Darwin" ]; then
f57139
         cat $RONLY_DIR/* > /dev/null
f57139
     fi
f57139
 
2533fc
     # skipping the next two tests when user is root,
2533fc
     # otherwise they would fail due to rooty powers
2533fc
-    if [ $UID -ne 0 ]; then
2533fc
+    if [[ $UID -ne 0 ]]; then
2533fc
       ${BINDIR}/dbtest -d $RONLY_DIR
f57139
     ret=$?
f57139
     if [ $ret -ne 46 ]; then
2533fc
       html_failed "Dbtest r/w succeeded in a readonly directory $ret"
f57139
     else
f57139
       html_passed "Dbtest r/w didn't work in an readonly dir $ret" 
f57139
     fi
2533fc
     else
2533fc
       html_passed "Skipping Dbtest r/w in a readonly dir because user is root"
2533fc
     fi
2533fc
-    if [ $UID -ne 0 ]; then
2533fc
+    if [[ $UID -ne 0 ]]; then
2533fc
       ${BINDIR}/certutil -D -n "TestUser" -d .
f57139
     ret=$?
f57139
     if [ $ret -ne 255 ]; then
2533fc
       html_failed "Certutil succeeded in deleting a cert in a readonly directory $ret"
f57139
     else
2533fc
       html_passed "Certutil didn't work in an readonly dir $ret"
f57139
     fi
2533fc
     else