2021-09-29 07:24:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-11-05 21:10:13 +00:00
|
|
|
export PMGR=pnpm
|
2021-09-29 07:24:21 +00:00
|
|
|
|
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
|
|
|
|
|
2022-11-05 21:10:13 +00:00
|
|
|
if [ ! -x "$(command -v pnpm)" ]; then
|
|
|
|
export PMGR=yarn
|
|
|
|
if [ ! -x "$(command -v yarn)" ]; then
|
|
|
|
export PMGR=npm
|
|
|
|
if [ ! -x "$(command -v npm)" ]; then
|
2021-09-29 07:24:21 +00:00
|
|
|
echo "You must install a node package manager."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
2022-11-05 21:10:13 +00:00
|
|
|
fi
|