2021-09-29 07:24:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-11-05 21:10:13 +00:00
|
|
|
if [ ! -x "$(command -v golangci-lint)" ]; then
|
2021-09-29 07:24:21 +00:00
|
|
|
echo "You must install golangci-lint."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-01-29 22:59:32 +00:00
|
|
|
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
|
2022-11-05 21:10:13 +00:00
|
|
|
fi
|