Fix error code 20 when doing msm default
When running `msm default` the expected error code 20 (skill is already
installed) is always reported (unless the skills directory is empty).
This commit supressess that error to not confuse any users.
@@ -749,6 +749,12 @@ case ${OPT} in
install_from_url_list "https://raw.githubusercontent.com/MycroftAI/mycroft-skills/master/DEFAULT-SKILLS.${mycroft_platform}" || exit_code=$?
fi
+ # Suppress error 20 (skill exists) since this is an expected error
+ # when doing `msm default`
+ if [ ${exit_code} == 20 ]; then
+ exit_code=0
+ fi
+
update || exit_code=$?
mv ${mycroft_skill_folder}/.msm.tmp ${mycroft_skill_folder}/.msm
;;
