blob: 6b28c999ca3518bc92107ee5d837192072c261b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  | 
#!/bin/sh
if [ ! -x "$(command -v golangci-lint)" ]; then
  echo "You must install golangci-lint."
  exit 1
fi
if [ -x "$(command -v pnpm)" ]; then
  export PMGR_RUN="pnpm"
  export PMGR_EXEC="pnpm"
elif [ -x "$(command -v yarn)" ]; then
  export PMGR_RUN="yarn run"
  export PMGR_EXEC="yarn dlx"
elif [ -x "$(command -v npm)" ]; then
  export PMGR_RUN="npm run"
  export PMGR_EXEC="npx"
else
	echo "You must install a node package manager (pnpm, yarn, or npm)."
	exit 1
fi
  |