diff --git a/.travis.yml b/.travis.yml index 8f96e2aa..d199e9d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,7 +40,7 @@ jobs: GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt; curl https://pre-commit.com/install-local.py | python3 - script: - pre-commit run --files `cat clean_files.txt`; + ./lint_clean_files.sh; - <<: *native_job name: Ubuntu 16.04 diff --git a/clean_files.txt b/clean_files.txt index f0f8457e..32cede56 100644 --- a/clean_files.txt +++ b/clean_files.txt @@ -1 +1,2 @@ +lint_clean_files.sh themes/90210/90210.theme.bash diff --git a/lint_clean_files.sh b/lint_clean_files.sh new file mode 100755 index 00000000..a6d3cb92 --- /dev/null +++ b/lint_clean_files.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Pull list of checkable files from clean_files.txt +# +mapfile -t FILES < clean_files.txt + +pre-commit run --files "${FILES[@]}"