]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
style: use shfmt 3.2.4
authorHarald Hoyer <harald@redhat.com>
Mon, 15 Mar 2021 12:49:05 +0000 (13:49 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 19 Mar 2021 10:34:05 +0000 (11:34 +0100)
.github/workflows/lint.yml
HACKING.md

index 135b7bdd68f96f16b895e56e8cf0eb80937f9389..8cefb44a1bd046c69a626d170178ad5239e7dd23 100644 (file)
@@ -29,7 +29,7 @@ jobs:
       - uses: actions/checkout@v2
 
       - name: Run the sh-checker
-        uses: luizm/action-sh-checker@v0.1.12
+        uses: luizm/action-sh-checker@v0.1.13
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SHELLCHECK_OPTS: -e SC1004 # exclude some shellcheck warnings.
index d0969b8b83299a72e1cfd4421f37488a83f6d7b7..1b41a54b136690053f89ace289913e2bc61693f3 100644 (file)
@@ -24,12 +24,19 @@ For convenience there is also a Makefile `indent-c` target `make indent-c`.
 To reformat shell files use `shfmt`:
 
 ```console
-$ shfmt_version=3.0.1
+$ shfmt_version=3.2.4
 $ wget "https://github.com/mvdan/sh/releases/download/v${shfmt_version}/shfmt_v${shfmt_version}_linux_amd64" -O shfmt
 $ chmod u+x shfmt
 $ ./shfmt -w -s .
 ```
 
+or
+
+```console
+$ GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt
+$ $GOPATH/bin/shfmt -w -s .
+```
+
 or if `shfmt` is already in your `PATH`, use `make indent`.
 
 Some IDEs already have support for shfmt.