Skip to content

Commit

Permalink
Allow {dir} for conversion pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
tecimovic committed Mar 1, 2021
1 parent dc12223 commit acfcb27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src-electron/main-process/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ async function startNormal(uiEnabled, showUrl, zapFiles, options) {
*/
function outputFile(inputFile, outputPattern) {
let output = outputPattern
if (output.includes('{')) {
if (output.startsWith('{dir}/')) {
let dir = path.dirname(inputFile)
output = path.join(dir, output.substring(6))
} else if (output.includes('{')) {
let dir = path.dirname(inputFile)
let name = path.basename(inputFile)
let basename
Expand Down

0 comments on commit acfcb27

Please sign in to comment.