Using if instead of -n in copy

Alpine linux does not have -n option in copy binary.
To avoid a problem on configure, I replaced the command with an "if".
This commit is contained in:
Paulo George Gomes Bezerra authored and Zaid Abdulla committed 2018-11-30 00:30:37 -08:00
1 parent 59474e9aea
commit 819d67e8aa
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@
},
"scripts": {
"compile": "echo 'Compile step no longer required, skipping.'",
"configure": "cp -n ./config/config-sample.json ./config/config.json",
"configure": "if [ ! -f ./config/config.json ]; then cp ./config/config-sample.json ./config/config.json; fi",
"install": "npm run configure",
"test": "node test",
"lint": "eslint --fix lib/*.js; prettier --write lib/*.js"