26 lines
722 B
Bash
Executable File
26 lines
722 B
Bash
Executable File
#!/bin/bash
|
|
cd "$(dirname "$0")"
|
|
|
|
# Check if pnpm is installed
|
|
if ! command -v pnpm &> /dev/null
|
|
then
|
|
echo "pnpm not found, installing using the universal installer..."
|
|
# Check if curl is installed
|
|
if ! command -v curl &> /dev/null
|
|
then
|
|
echo "curl not found. Please install curl first."
|
|
exit 1
|
|
fi
|
|
# Check if sh is available
|
|
if ! command -v sh &> /dev/null
|
|
then
|
|
echo "sh not found. This script requires a shell interpreter."
|
|
exit 1
|
|
fi
|
|
curl -fsSL https://get.pnpm.io/install.sh | sh -
|
|
echo "Please restart your terminal or run 'source ~/.bashrc' (or equivalent) to add pnpm to your PATH."
|
|
else
|
|
echo "pnpm is already installed."
|
|
fi
|
|
|
|
pnpm install |