Fix creation of /opt/mycroft/skills

pull/643/head
Joel Bradshaw 2017-04-07 21:20:34 +01:00
parent 36045fd44e
commit 5e55a117c8
1 changed files with 2 additions and 2 deletions

View File

@ -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