2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2020-08-06 14:01:25 -04:00
|
|
|
################################################################################
|
|
|
|
|
## File: netlify.sh
|
|
|
|
|
## Desc: Installs the Netlify CLI
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
# Install the Netlify CLI
|
|
|
|
|
npm i -g netlify-cli
|
|
|
|
|
|
|
|
|
|
# Validate the installation
|
|
|
|
|
echo "Validate the installation"
|
|
|
|
|
if ! command -v netlify; then
|
|
|
|
|
echo "Netlify CLI was not installed"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|