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) {