]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
docs-xml: Reformat shell scripts
authorAndreas Schneider <asn@samba.org>
Sat, 19 Feb 2022 07:56:15 +0000 (08:56 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 22 Feb 2022 15:23:35 +0000 (15:23 +0000)
shfmt -f docs-xml | xargs shfmt -w -p -i 0 -fn

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
docs-xml/smbdotconf/generate-file-list.sh

index a86bac5c28951b76d956d50c6fd6ee667227c11f..27c9c5b753ed8de7c776386bf1b1f4d076154757 100755 (executable)
@@ -21,20 +21,17 @@ echo "<!DOCTYPE section [
 ]>"
 
 DIR=.
-if [ "x$1" != "x" ]
-then
+if [ "x$1" != "x" ]; then
        DIR="$1"
 fi
 
-OLD=`pwd`
+OLD=$(pwd)
 cd $DIR
 
 echo "<section>"
-for I in `find . -mindepth 2 -type f -name '*.xml' | sort -t/ -k3 | xargs`
-do 
+for I in $(find . -mindepth 2 -type f -name '*.xml' | sort -t/ -k3 | xargs); do
        cat $I
 done
 echo "</section>"
 
-
 cd $OLD