testsuite: Reformat shell scripts
authorAndreas Schneider <asn@samba.org>
Wed, 23 Feb 2022 11:12:09 +0000 (12:12 +0100)
committerPavel Filipensky <pfilipensky@samba.org>
Wed, 10 Aug 2022 13:17:31 +0000 (13:17 +0000)
shfmt -f testsuite/ | xargs shfmt -w -p -i 0 -fn

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
testsuite/nsswitch/getent_r.sh

index 75dc603f829dd218097c2abafef4eca61eb7df97..981aaf5316d709c21f5005a5bd81512059db9cbd 100755 (executable)
@@ -3,7 +3,7 @@
 # Verify test output.  Basically we check to see if all the files generated
 # in /tmp by the get{pw,gr}ent_r.c and program are identical.  If there is
 # some problem with the re-entrancy of the code then the information in the
-# two files will be different.  
+# two files will be different.
 #
 
 TYPE=$1
@@ -13,7 +13,7 @@ FILES="/tmp/${TYPE}_r-${ID}.out-*"
 # Sort files
 
 for file in $FILES; do
-    cat $file | sort > $file.sorted
+       cat $file | sort >$file.sorted
 done
 
 # Diff files
@@ -22,14 +22,13 @@ SORTED="/tmp/${TYPE}_r-${ID}.out-*.sorted"
 failed=0
 
 for file1 in $SORTED; do
-    for file2 in $SORTED; do
-        if [ $file1 != $file2 ]; then
-                diff $file1 $file2
-        fi
-    done
+       for file2 in $SORTED; do
+               if [ $file1 != $file2 ]; then
+                       diff $file1 $file2
+               fi
+       done
 done
 
 # Clean up
 
 rm -f $SORTED
-