skip if skill dir exists.
@@ -111,6 +111,10 @@ while [[ $# -gt 0 ]] ; do
fi
git_name=$(echo "${repo}" | sed 's/.*\///')
name=$(echo "$git_name" | sed 's/.git//')
+ if [[ -d "${mycroft_skill_folder}/${name}" ]] ; then
+ echo "Skill appears to exist already. Perhaps you meant to use update?"
+ return 169
+ fi
echo "Cloning repository"
git clone "${repo}" >> /dev/null
if ! cd "${name}" ; then
