mycroft-core/install-mimic.sh

21 lines
374 B
Bash
Executable File

#!/usr/bin/env bash
# exit on any error
set -Ee
MIMIC_DIR=mimic
# download and install mimic
if [ ! -d ${MIMIC_DIR} ]; then
git clone https://github.com/MycroftAI/mimic.git
cd ${MIMIC_DIR}
./configure --with-audio=alsa
make
else
# ensure mimic is up to date
cd ${MIMIC_DIR}
git pull
make clean
./configure --with-audio=alsa
make
fi