mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-10 17:12:07 +08:00
Add shfmt to format source code
This commit is contained in:
11
.travis.yml
Normal file
11
.travis.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
language: bash
|
||||
|
||||
env:
|
||||
global:
|
||||
- SHFMT_URL=https://github.com/mvdan/sh/releases/download/v0.4.0/shfmt_v0.4.0_linux_amd64
|
||||
|
||||
script:
|
||||
- curl -sSL $SHFMT_URL -o ~/shfmt
|
||||
- chmod +x ~/shfmt
|
||||
- ~/shfmt -l -w -i 2 .
|
||||
- git diff --exit-code || echo "Run shfmt to fix the formatting issues"
|
||||
Reference in New Issue
Block a user