forked from tornadocash/classic-ui
16 lines
274 B
JavaScript
16 lines
274 B
JavaScript
|
import { argv } from 'process'
|
||
|
import { copyFile } from 'fs'
|
||
|
|
||
|
function copyFiles() {
|
||
|
const [, , inFile, outFile] = argv
|
||
|
|
||
|
copyFile(inFile, outFile, function(err) {
|
||
|
if (err) {
|
||
|
throw err
|
||
|
}
|
||
|
|
||
|
console.log(`Copied ${inFile} to ${outFile}`)
|
||
|
})
|
||
|
}
|
||
|
copyFiles()
|