Accidentally butchered my cut command

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

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

Loading…
Cancel
Save