mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-01 04:50:59 +08:00
[dev] Fix temp dir path in daily
This commit is contained in:
parent
3554fb2510
commit
17da34caed
1 changed files with 5 additions and 4 deletions
|
@ -41,10 +41,11 @@ function git(subCmd, opts = {}) {
|
|||
}
|
||||
|
||||
async function prependToFile(filepath, string) {
|
||||
mkdirp.sync(path.join(__dirname, '..', 'tmp'))
|
||||
await exec(`echo "${string}" > ./tmp/tmpfile`)
|
||||
await exec(`cat ${filepath} >> ./tmp/tmpfile`)
|
||||
await exec(`mv ./tmp/tmpfile ${filepath}`)
|
||||
const tmpDir = path.join(__dirname, '..', 'tmp')
|
||||
mkdirp.sync(tmpDir)
|
||||
await exec(`echo "${string}" > ${tmpDir}/tmpfile`)
|
||||
await exec(`cat ${filepath} >> ${tmpDir}/tmpfile`)
|
||||
await exec(`mv ${tmpDir}/tmpfile ${filepath}`)
|
||||
}
|
||||
|
||||
async function sliceFileLines(filepath, idx) {
|
||||
|
|
Loading…
Reference in a new issue