blob: dcf11f6f434df5e996cc3c17db4b95d80fb0472b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env zsh
set -eax
if ! which mkdir >/dev/null 2>/dev/null; then
echo -e "\x1b[0;31mSanity Check - \`mkdir\` - not found. Your busybox||toybox||coreutils||bsdutils||etc is fucked.\x1b[0m"
exit 2;
fi
if ! which pnpm >/dev/null 2>/dev/null; then
echo -e "\x1b[0;31mInstall pnpm - https://pnpm.io - ideally using your preferred package manager.\x1b[0m"
exit 3;
fi
if ! which node >/dev/null 2>/dev/null; then
echo -e "\x1b[0;31mInstall node - https://nodejs.org - ideally using your preferred package manager.\x1b[0m"
exit 3;
fi
if ! which jq >/dev/null 2>/dev/null; then
echo -e "\x1b[0;31mInstall jq, ideally using your preferred package manager.\x1b[0m"
exit 3;
fi
pnpm i
|