Files
runner-images/images/linux/scripts/installers/vercel.sh
T

25 lines
649 B
Bash
Raw Normal View History

2020-10-07 13:49:40 +05:00
#!/bin/bash -e
################################################################################
## File: vercel.sh
## Desc: Installs the Vercel CLI
################################################################################
# Install the Vercel CLI
2020-05-28 17:18:02 +04:00
npm i -g vercel
# Validate the installation
echo "Validate the installation"
2020-05-28 17:18:02 +04:00
if ! command -v vercel; then
echo "Vercel CLI was not installed"
2020-05-28 17:18:02 +04:00
exit 1
fi
echo "Creating the symlink for [now] command to vercel CLI"
2020-05-28 17:18:02 +04:00
ln -s /usr/local/bin/vercel /usr/local/bin/now
echo "Validate the link"
if ! command -v now; then
echo "[Now] symlink to Vercel CLI was not created"
exit 1
fi