1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-22 17:23:50 +01:00

output photo filename at end of script

This commit is contained in:
Matthias Kretschmann 2019-02-11 20:57:26 +01:00
parent f24d27244a
commit b941f1ea84
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -45,7 +45,9 @@ if (isPhoto) {
fs.appendFile(filePhoto, newContentsPhoto, err => { fs.appendFile(filePhoto, newContentsPhoto, err => {
if (err) spinner.fail(`Error creating photo post: ${err}`) if (err) spinner.fail(`Error creating photo post: ${err}`)
spinner.succeed(`New post '${title}' created.`) spinner.succeed(
`New photo post '${title}' created.\n\n Use ${dateShort}-${titleSlug}.jpg as the photo file name.`
)
}) })
} else { } else {
if (process.argv[3]) { if (process.argv[3]) {