From 81bbe38f780487186598cab9cd8c03e968db02be Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Mon, 23 Mar 2020 10:25:41 +0800 Subject: [PATCH] fix cli error --- doric-cli/scripts/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doric-cli/scripts/init.js b/doric-cli/scripts/init.js index d80c7c36..c101b6c4 100644 --- a/doric-cli/scripts/init.js +++ b/doric-cli/scripts/init.js @@ -6,7 +6,7 @@ require('shelljs/global') const targetJSPath = `${__dirname}/../target/` const targetAndroidPath = `${__dirname}/../target/android` const targetiOSPath = `${__dirname}/../target/iOS` -const currentVersion = fs.readFileSync(`${targetJSPath}/version`).toString() +const currentVersion = fs.readFileSync(`${targetJSPath}/version`).toString().trim() function copyFile(srcPath, tarPath, cb) { var rs = fs.createReadStream(srcPath) rs.on('error', function (err) {