Fix creation of /opt/mycroft/skills
@@ -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
