Skip to content

Commit a16d58b

Browse files
author
Thomas G.
committed
fix: 🐛 dependencies install
1 parent 1643e8e commit a16d58b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/githooks/_pre-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if git diff --name-only ${@:---cached} | grep -q "composer.json"; then
5959
fi
6060

6161
# Install Prettier & Commitlint plugins if they are not already installed
62-
npm install -g --no-save $(cat package.json | npx --yes jqn '.prettier.plugins//"",.commitlint.extend//""' | tr -d "'[]:,\"\n") 2>/dev/null 1>&2
62+
npm install --no-save $(cat package.json | npx --yes jqn '.prettier.plugins//"",.commitlint.extend//""' | tr -d "'[]:,\"\n") 2>/dev/null 1>&2
6363

6464
# Run pre-commit checks
6565
npx --yes git-precommit-checks

src/githooks/_prepare-commit-msg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ -t 1 ]; then
88
fi
99

1010
# Install commitizen plugins
11-
npm install --no-save $(cat package.json | npx --yes jqn '.config.commitizen.path' | tr -d "'[]:,") 2>/dev/null 1>&2
11+
npm install --no-save $(cat package.json | npx --yes jqn '.config.commitizen.path//""' | tr -d "'[]:,\"\n") 2>/dev/null 1>&2
1212

1313
# Edit commit message
1414
if [ $(grep -cv -e '^#' -e '^$' .git/COMMIT_EDITMSG) -eq 0 ]; then

src/githooks/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "githooks",
33
"name": "Git Hooks",
44
"description": "A feature to add useful Git hooks to your project",
5-
"version": "5.9.0",
5+
"version": "5.9.1",
66
"dependsOn": {
77
"ghcr.io/devcontainers/features/node:1": "lts",
88
"ghcr.io/tomgrv/devcontainer-features/common-utils:3": {},

src/gitutils/_setrights.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set_permissions() {
77
local type="$1"
88
local name="$2"
99
local perm="$3"
10-
echo "Setting permissions $perm for typer <$type> with name pattern '$name'"
10+
echo "Setting permissions $perm for type <$type> with name pattern '$name'"
1111
git ls-files -o -i --exclude-standard | grep -v '/$' | xargs -I {} find "{}" -type "$type" -name "$name" -exec chmod "$perm" {} \;
1212
}
1313

0 commit comments

Comments
 (0)