mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
3d312cf3b9
* Check for pnpm in authelia-scripts * Improve husky hooks to check for required apps * Use pnpm in coverage dockerfile * Use pnpm in dev workflow * Stop buildx log truncation * Ignore pnpm lockfile in yamllint * Update versions required for docker and docker-compose in contributing docs
19 lines
360 B
Bash
19 lines
360 B
Bash
#!/bin/sh
|
|
|
|
PMGR=pnpm
|
|
|
|
if [[ ! -x "$(command -v golangci-lint)" ]]; then
|
|
echo "You must install golangci-lint."
|
|
exit 1
|
|
fi
|
|
|
|
if [[ ! -x "$(command -v pnpm)" ]]; then
|
|
PMGR=yarn
|
|
if [[ ! -x "$(command -v yarn)" ]]; then
|
|
PMGR=npm
|
|
if [[ ! -x "$(command -v npm)" ]]; then
|
|
echo "You must install a node package manager."
|
|
exit 1
|
|
fi
|
|
fi
|
|
fi |