File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 19
19
} ;
20
20
21
21
git-hooks . hooks = {
22
- prettier = {
23
- enable = true ;
24
- files = "(src/.*\. ts|.*\. md|.*\. yml)$" ;
25
- } ;
26
- nixfmt-rfc-style . enable = true ;
27
22
build-dist = {
28
23
enable = true ;
29
24
files = "src/.*$" ;
30
25
pass_filenames = false ;
31
26
entry = "devenv shell -- pnpm build" ;
32
27
} ;
28
+ nixfmt-rfc-style . enable = true ;
29
+ prettier = {
30
+ enable = true ;
31
+ files = "(src/.*\. ts|.*\. md|.*\. yml)$" ;
32
+ } ;
33
+ shellcheck = {
34
+ enable = true ;
35
+ excludes = [ "\\ .envrc" ] ;
36
+ } ;
33
37
} ;
34
38
}
Original file line number Diff line number Diff line change @@ -8,15 +8,13 @@ filterPaths() {
8
8
local paths=$2
9
9
10
10
for path in $paths ; do
11
- echo $path | grep -vEe $regex
11
+ echo " $path " | grep -vEe " $regex "
12
12
done | xargs
13
13
}
14
14
15
15
pathsToPush=" "
16
- preBuildPaths=$( sort " $preBuildPathsFile " )
17
- if [ $? -eq 0 ]; then
18
- postBuildPaths=$( " $( dirname " $0 " ) " /list-nix-store.sh | sort)
19
- if [ $? -eq 0 ]; then
16
+ if preBuildPaths=$( sort " $preBuildPathsFile " ) ; then
17
+ if postBuildPaths=$( " $( dirname " $0 " ) " /list-nix-store.sh | sort) ; then
20
18
pathsToPush=$( comm -13 <( echo " $preBuildPaths " ) <( echo " $postBuildPaths " ) )
21
19
else
22
20
echo " ::error::Failed to list post-build store paths."
26
24
fi
27
25
28
26
if [[ -n $pushFilter ]]; then
29
- pathsToPush=$( filterPaths $pushFilter " $pathsToPush " )
27
+ pathsToPush=$( filterPaths " $pushFilter " " $pathsToPush " )
30
28
fi
31
29
32
- echo " $pathsToPush " | " $cachix " push $cachixArgs " $cache "
30
+ echo " $pathsToPush " | " $cachix " push " $cachixArgs " " $cache "
You can’t perform that action at this time.
0 commit comments