Trim current version string
This commit is contained in:
parent
4ed9312eb7
commit
449d0f01d8
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ const getLatestVersion = async () => {
|
|||
const getCurrentVersion = () => {
|
||||
try {
|
||||
const versionFile = fs.readFileSync('./.version');
|
||||
return versionFile ? versionFile.toString() : null;
|
||||
return versionFile ? versionFile.toString().trim() : null;
|
||||
} catch(_) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue