Skip to content

Commit

Permalink
chore: add shellcheck for bash scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-semenov committed May 12, 2024
1 parent 5304c4f commit 1527d7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ repos:
entry: jsonlint
language: system
files: '.*\.(json|JSON-tmLanguage)'
exclude: ^(language-configuration|.vscode/launch).json
# yaml
- repo: local
hooks:
Expand Down Expand Up @@ -64,3 +65,8 @@ repos:
entry: vagrant validate
language: system
files: 'Vagrantfile'
# shell
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
8 changes: 4 additions & 4 deletions scripts/compile-grammar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
set -e


scriptPath="$(readlink -f $0)"
scriptPath=$(readlink -f "$0")
rootDir=$(dirname "${scriptPath%/*}")

statix check
nix flake check --impure "$rootDir"

cp $(nix build --impure \
--no-link \
--print-out-paths "$rootDir")/parigp* "$rootDir/syntaxes/"
cp "$(nix build --impure \
--no-link \
--print-out-paths "$rootDir")"/parigp* "$rootDir/syntaxes/"

0 comments on commit 1527d7f

Please sign in to comment.