mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-23 01:30:01 +01:00
output photo filename at end of script
This commit is contained in:
parent
f24d27244a
commit
b941f1ea84
@ -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]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user