diff --git a/scripts/install-msm.sh b/scripts/install-msm.sh index 8f29de6d2c..45c845f72b 100755 --- a/scripts/install-msm.sh +++ b/scripts/install-msm.sh @@ -10,10 +10,10 @@ chmod +x msm/msm if [[ ${IS_TRAVIS} != true ]]; then echo "Create /opt/mycroft/skills if it doesn't exist" if [ ! -d ${SKILLS_DIR} ]; then - sudo chown $USER:$USER ${SKILLS_DIR} + sudo mkdir -p ${SKILLS_DIR} fi if [ ! -w ${SKILLS_DIR} ]; then - sudo mkdir -p ${SKILLS_DIR} + sudo chown $USER:$USER ${SKILLS_DIR} fi fi