appease shellcheck

pull/982/head
Jesse Vincent 4 years ago
parent 6115305615
commit 4536fd5190
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -1,11 +1,11 @@
#!/bin/sh
export EXAMPLE=$1
export EXNAME=`echo ${EXAMPLE} |cut -c 3-`
cd examples; \
install -d dirname ${EXAMPLE}
echo "# ${EXNAME}\n\`\`\` c++\n" > ${EXAMPLE}.md
cat ../../examples/${EXAMPLE} >> ${EXAMPLE}.md
echo "\n\`\`\`" >> ${EXAMPLE}.md
EXNAME=$(echo "${EXAMPLE}" |cut -c 3)
cd examples ||exit; \
install -d dirname "${EXAMPLE}"
printf "# %s\n\`\`\` c++\n", "${EXNAME}" > "${EXAMPLE}.md"
cat ../../examples/"${EXAMPLE}" >> "${EXAMPLE}.md"
printf '\n```' >> "${EXAMPLE}.md"

Loading…
Cancel
Save