mycroft-core/scripts/prepare-msm.sh

19 lines
407 B
Bash
Executable File

#!/usr/bin/env bash
SKILLS_DIR='/opt/mycroft/skills'
# exit on any error
set -Ee
chmod +x msm/msm
if [[ ${IS_TRAVIS} != true ]]; then
if [ ! -d ${SKILLS_DIR} ]; then
echo "Create /opt/mycroft/skills"
sudo mkdir -p ${SKILLS_DIR}
fi
if [ ! -w ${SKILLS_DIR} ]; then
echo "Changing ownsership of /opt/mycroft/skills"
sudo chown $USER:$USER ${SKILLS_DIR}
fi
fi