Files
runner-images/images/linux/scripts/installers/vercel.sh
Vladimir Safonkin 7b3bfbdf61 [Ubuntu] Remove docs logic from Ubuntu provisioner (#1603)
* Remove docs logic on Ubuntu

* Cleanup templates

* Fix oras-cli.sh

* Remove announcements.md
2020-09-17 14:15:31 +03:00

25 lines
646 B
Bash

#!/bin/bash
################################################################################
## File: vercel.sh
## Desc: Installs the Vercel CLI
################################################################################
# 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