Created
March 17, 2021 09:58
-
-
Save GeorgeSabu/8a5bcdb01168066e3292b919c5e15917 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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