Skip to content

Commit e3cf28b

Browse files
author
François Chastanet
committed
Linux::Apt::installIfNecessary supports options -- or -
updated pre-commit-config with new prettier hook
1 parent e61b03f commit e3cf28b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.pre-commit-config-github.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,11 @@ repos:
113113
^.cspell/codespellrc-.*.txt$
114114
)
115115
116-
- repo: https://github.com/pre-commit/mirrors-prettier
117-
rev: v4.0.0-alpha.8
116+
- repo: https://github.com/ComPWA/prettier-pre-commit
117+
rev: v3.4.2
118118
hooks:
119119
- id: prettier
120+
args: [--cache]
120121
exclude: |
121122
(?x)(
122123
\.md$|

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@ repos:
108108
^.cspell/codespellrc-.*.txt$
109109
)
110110
111-
- repo: https://github.com/pre-commit/mirrors-prettier
112-
rev: v4.0.0-alpha.8
111+
- repo: https://github.com/ComPWA/prettier-pre-commit
112+
rev: v3.4.2
113113
hooks:
114114
- id: prettier
115+
args: [--cache]
115116
exclude: |
116117
(?x)(
117118
\.md$|

src/Linux/Apt/installIfNecessary.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Linux::Apt::installIfNecessary() {
1212
local package
1313
local -i installNeeded=0
1414
for package in "${packages[@]}"; do
15-
if [[ "${package}" =~ ^-- ]]; then
15+
if [[ "${package}" =~ ^[-]{1,2} ]]; then
1616
continue
1717
fi
1818
if ! Linux::Apt::isPackageInstalled "${package}"; then

0 commit comments

Comments
 (0)