Created
March 17, 2021 09:54
-
-
Save GeorgeSabu/3145e7931edd5d5101ba0460575ccb44 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 | |
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