Skip to content

Commit

Permalink
Merge pull request #117 from yuchuanxi/hotfix-exportArtboard-fileName…
Browse files Browse the repository at this point in the history
…WithSpecialCharacter

hotfix: export artboard when file name contains special character
  • Loading branch information
mathieudutour authored May 5, 2017
2 parents 3c84371 + bf65d80 commit e13e0b6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Git.sketchplugin/exportArtboard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ mkdir -p "$FILE_FOLDER"
if [[ ${INCLUDE_OVERVIEW} == "true" ]]
then
readmeFile="./${FILENAME%.*}-boards.md" # Exclude the file extension
echo "# Artboards" > ${readmeFile}
echo "" >> ${readmeFile}
echo "This is an autogenerated file showing all the artboards. Do not edit it directly." >> ${readmeFile}
echo "# Artboards" > "${readmeFile}"
echo "" >> "${readmeFile}"
echo "This is an autogenerated file showing all the artboards. Do not edit it directly." >> "${readmeFile}"
fi

# compare new artboards with the old ones
Expand All @@ -58,11 +58,11 @@ do
if [[ ${INCLUDE_OVERVIEW} == "true" ]]
then
artboardName="${artboard%.*}" # Exclude the file extension
echo "" >> ${readmeFile}
echo "## ${artboardName}" >> ${readmeFile}
echo "" >> ${readmeFile}
echo "![${artboardName}](./${artboardPath})" >> ${readmeFile}
echo "" >> ${readmeFile}
echo "" >> "${readmeFile}"
echo "## ${artboardName}" >> "${readmeFile}"
echo "" >> "${readmeFile}"
echo "![${artboardName}](./${artboardPath})" >> "${readmeFile}"
echo "" >> "${readmeFile}"
fi
done

Expand Down

0 comments on commit e13e0b6

Please sign in to comment.