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:
1 parent
71c91766a6
commit
3f0d1f43eb
1 file changed
+1
-1
+1
-1
@@ -36,7 +36,7 @@
|
||||
"scripts": {
|
||||
"prepublish": "npm run compile",
|
||||
"compile": "coffee -cb lib/*.coffee",
|
||||
"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"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user