From 3f0d1f43eb9e83105e7162f421e9d9eb4a8b2a55 Mon Sep 17 00:00:00 2001 From: Paulo George Gomes Bezerra Date: Tue, 19 Jun 2018 14:01:12 -0300 Subject: [PATCH] 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". --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index aabd453..037539b 100644 --- a/package.json +++ b/package.json @@ -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" }