diff --git a/src/find-python.ts b/src/find-python.ts index 3e033232..5f506960 100644 --- a/src/find-python.ts +++ b/src/find-python.ts @@ -88,7 +88,9 @@ export async function useCpythonVersion( const osInfo = await getOSInfo(); throw new Error( [ - `The version '${version}' with architecture '${architecture}' was not found for ${osInfo ? osInfo : 'this operating system'}.`, + `The version '${version}' with architecture '${architecture}' was not found for ${ + osInfo ? osInfo : 'this operating system' + }.`, `The list of all available versions can be found here: ${installer.MANIFEST_URL}` ].join(os.EOL) ); diff --git a/src/utils.ts b/src/utils.ts index 61594b7c..e500d631 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -158,13 +158,9 @@ async function getWindowsInfo() { } async function getMacOSInfo() { - const {stdout} = await exec.getExecOutput( - 'sw_vers', - ['-productVersion'], - { - silent: true - } - ); + const {stdout} = await exec.getExecOutput('sw_vers', ['-productVersion'], { + silent: true + }); const macOSVersion = stdout.trim(); @@ -172,13 +168,9 @@ async function getMacOSInfo() { } async function getLinuxInfo() { - const {stdout} = await exec.getExecOutput( - 'lsb_release', - ['-i', '-r', '-s'], - { - silent: true - } - ); + const {stdout} = await exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], { + silent: true + }); const [osName, osVersion] = stdout.trim().split('\n'); @@ -187,7 +179,7 @@ async function getLinuxInfo() { export async function getOSInfo() { let osInfo; - if (IS_WINDOWS){ + if (IS_WINDOWS) { osInfo = await getWindowsInfo(); } else if (IS_LINUX) { osInfo = await getLinuxInfo();