feat(installer): remove old installation before downloading

This commit is contained in:
ayo 2026-06-07 20:08:25 +02:00
parent 90f01391a1
commit f307a6d4a0

View file

@ -9,6 +9,10 @@ TEMP_DIR=$(mktemp -d)
cleanup() { rm -rf $TEMP_DIR; } cleanup() { rm -rf $TEMP_DIR; }
trap cleanup EXIT trap cleanup EXIT
echo "Removing old installation if they exist"
rm -rf $INSTALL_DIR/simple-tts
rm $EXECUTABLE_BIN/tts
echo "Installing to: $INSTALL_DIR" echo "Installing to: $INSTALL_DIR"
echo "Downloading simple-tts.tgz" echo "Downloading simple-tts.tgz"