diff --git a/src/app.js b/src/app.js index ad9a93a..5456167 100644 --- a/src/app.js +++ b/src/app.js @@ -1 +1,16 @@ +/* eslint-disable no-console */ 'use strict'; + +const fs = require('fs'); + +const [source, destination] = process.argv.slice(2); + +try { + if (source === destination) { + process.exit(0); + } + + fs.copyFileSync(source, destination); +} catch (error) { + console.error(`Error: ${error.message}`); +}