mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
32 lines
856 B
Bash
32 lines
856 B
Bash
#!/bin/bash
|
|
################################################################################
|
|
## File: vercel.sh
|
|
## Desc: Installs the Vercel CLI
|
|
################################################################################
|
|
|
|
# Source the helpers for use with the script
|
|
source $HELPER_SCRIPTS/document.sh
|
|
|
|
# Install the Vercel CLI
|
|
npm i -g vercel
|
|
|
|
# Validate the installation
|
|
echo "Validate the installation"
|
|
if ! command -v vercel; then
|
|
echo "Vercel CLI was not installed"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Creating the symlink for [now] command to vercel CLI"
|
|
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
|
|
|
|
# Document the installed version
|
|
echo "Document the installed version"
|
|
DocumentInstalledItem "Vercel CLI ($(vercel --version))"
|