diff --git a/.github/workflows/sh-checker.yml b/.github/workflows/sh-checker.yml new file mode 100644 index 0000000000..4774377a76 --- /dev/null +++ b/.github/workflows/sh-checker.yml @@ -0,0 +1,17 @@ +name: SH Checker +on: + - pull_request +jobs: + sh-checker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run the sh-checker + uses: luizm/action-sh-checker@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SHELLCHECK_OPTS: -o all -e 2148 -e SC2033 -e SC2032 -e SC2034 -e SC2154 -e SC2312 -e SC2164 + SHFMT_OPTS: -s -i 2 -bn -ci -sr -s + with: + sh_checker_comment: true + sh_checker_exclude: "packages/emacs/emacs.pacscript packages/emacs-git/emacs-git.pacscript" diff --git a/packages/dust-bin/dust-bin.pacscript b/packages/dust-bin/dust-bin.pacscript index 9ca2dafd6f..a208d74809 100644 --- a/packages/dust-bin/dust-bin.pacscript +++ b/packages/dust-bin/dust-bin.pacscript @@ -29,7 +29,7 @@ package() { } post_remove() { - # Remove empty directories + # Remove empty directories sudo rm -rf "/usr/share/licenses/${pkgname}" sudo rm -rf "/usr/share/doc/${pkgname}" }