Minor cleanup (#214)
[rsync.git] / testsuite / default-acls.test
index eb41a6ff1839aedfe4db9e24a79d5ec01c1cad75..a0a482cedf7e3a0c511ab8fbdf632d180558d0c7 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/sh
 
 # This program is distributable under the terms of the GNU GPL (see
 # COPYING).
@@ -7,7 +7,7 @@
 
 . $suitedir/rsync.fns
 
-$RSYNC --version | grep ", ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support"
+$RSYNC --version | grep "[, ] ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support"
 
 case "$setfacl_nodef" in
 true) test_skipped "I don't know how to use your setfacl command" ;;
@@ -21,7 +21,7 @@ testit() {
     todir="$scratchdir/$1"
     mkdir "$todir"
     $setfacl_nodef "$todir"
-    if [ "$2" ]; then
+    if [ -n "$2" ]; then
        case "$setfacl_nodef" in
        *-k*) opts="-dm $2" ;;
        *) opts="-m `echo $2 | sed 's/\([ugom]:\)/d:\1/g'`"