There was an error while loading. Please reload this page.
1 parent 6245e17 commit bdf8391Copy full SHA for bdf8391
1 file changed
src/app.js
@@ -6,11 +6,13 @@ const source = process.argv[2];
6
const destination = process.argv[3];
7
8
if (!source || !destination) {
9
+ // eslint-disable-next-line no-console
10
console.error('Source and destination are required');
11
} else if (source !== destination) {
12
try {
13
fs.copyFileSync(source, destination);
14
} catch (error) {
15
16
console.error(error.message);
17
}
18
0 commit comments