Skip to content

Instantly share code, notes, and snippets.

@GeorgeSabu
Created March 17, 2021 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GeorgeSabu/3145e7931edd5d5101ba0460575ccb44 to your computer and use it in GitHub Desktop.
Save GeorgeSabu/3145e7931edd5d5101ba0460575ccb44 to your computer and use it in GitHub Desktop.
#!/bin/bash
BIN_PATH_POLLY=$(which polly)
if [[ "$BIN_PATH_POLLY" == "" ]]
then
echo "Polly not installed already"
else
echo "Uninstalling and removing cache so that fresh version can be installed"
BIN_PATH=$(dirname $BIN_PATH_POLLY)
PATH_TO_DEL=$(realpath $BIN_PATH/../lib/node_modules/@elucidatainc)
npm uninstall -g @elucidatainc/pollycli
rm -rf $PATH_TO_DEL
fi
echo "Installing Polly CLI"
npm install -g @elucidatainc/pollycli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment