Skip to content

Instantly share code, notes, and snippets.

@GeorgeSabu
Created March 17, 2021 09:58
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/8a5bcdb01168066e3292b919c5e15917 to your computer and use it in GitHub Desktop.
Save GeorgeSabu/8a5bcdb01168066e3292b919c5e15917 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment