Skip to content

Commit

Permalink
fix(task-get): More consistent logging when exporting task definition…
Browse files Browse the repository at this point in the history
…s to disk file
  • Loading branch information
Göran Sander committed Mar 8, 2024
1 parent 98b3a0d commit 8a4d9bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/cmd/gettask.js
Expand Up @@ -257,7 +257,7 @@ const getTask = async (options) => {
}

// Check if file exists
if ((await verifyFileExists(options.outputFileName)) === false) {
if ((await verifyFileExists(options.outputFileName, true)) === false) {
// File doesn't exist
} else if (!options.outputFileOverwrite) {
// Target file exist. Ask if user wants to overwrite
Expand Down Expand Up @@ -746,7 +746,7 @@ const getTask = async (options) => {
}

// Check if file exists
if ((await verifyFileExists(options.outputFileName)) === false) {
if ((await verifyFileExists(options.outputFileName, true)) === false) {
// File doesn't exist
} else if (!options.outputFileOverwrite) {
// Target file exist. Ask if user wants to overwrite
Expand Down

0 comments on commit 8a4d9bb

Please sign in to comment.