spaces, not tabs
This commit is contained in:
parent
46a7f50115
commit
08294f564b
|
@ -4,13 +4,13 @@ import { promisify } from 'util';
|
||||||
const exec = promisify(_exec);
|
const exec = promisify(_exec);
|
||||||
|
|
||||||
export async function isNpx() {
|
export async function isNpx() {
|
||||||
const output = await exec('npm list -g musescore-downloader')
|
const output = await exec('npm list -g musescore-downloader')
|
||||||
return output.stdout.includes('(empty)');
|
return output.stdout.includes('(empty)');
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function isLatest() {
|
export async function isLatest() {
|
||||||
const version = (/musescore-downloader@([\d\.]+)/).exec((await exec('npm list -g musescore-downloader')).stdout)![1]
|
const version = (/musescore-downloader@([\d\.]+)/).exec((await exec('npm list -g musescore-downloader')).stdout)![1]
|
||||||
const latest = (await exec('npm info musescore-downloader version')).stdout.trim()
|
const latest = (await exec('npm info musescore-downloader version')).stdout.trim()
|
||||||
|
|
||||||
return version.trim() === latest
|
return version.trim() === latest
|
||||||
}
|
}
|
Loading…
Reference in New Issue