From 5e55a117c8b69366b2f5b91ef4e8d11e3beb9388 Mon Sep 17 00:00:00 2001 From: Joel Bradshaw Date: Fri, 7 Apr 2017 21:20:34 +0100 Subject: [PATCH] Fix creation of /opt/mycroft/skills --- scripts/install-msm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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