Skip to content

Commit b3eb79d

Browse files
committed
chore: git-crypt
1 parent 5220264 commit b3eb79d

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pvt.* filter=git-crypt diff=git-crypt

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ repos:
1010
rev: v4.0.1
1111
hooks:
1212
- id: trailing-whitespace
13+
exclude: \.pvt\.
1314
- id: end-of-file-fixer
15+
exclude: \.pvt\.
1416
- id: check-yaml
17+
exclude: \.pvt\.
1518
- id: check-added-large-files
1619
- id: mixed-line-ending
20+
exclude: \.pvt\.
1721
- repo: git://github.com/dnephin/pre-commit-golang
1822
rev: v0.4.0
1923
hooks:

.pvt.env

3.17 KB
Binary file not shown.

scripts/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

scripts/config_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ metadata=$3
1818
filter_config() {
1919
local name=$1
2020
for source in ./config_source*.yaml; do
21-
cfg=$(sed -n "/$name:/, /^\$/p" "$source" | grep -v '^$')
21+
cfg=$(sed -n "/$name:/, /^\$/p" "$source" | grep -v '^$' | sed "s/{{PLAYDB}}/${PLAYDB:-playdb}/g")
2222
[[ -n $cfg ]] && echo "$cfg" && return
2323
done
2424

scripts/config_source.pvt.yaml

2.61 KB
Binary file not shown.

0 commit comments

Comments
 (0)