switch for unix
This commit is contained in:
parent
100ac8f013
commit
6c7a89689e
@ -18,7 +18,11 @@ module.exports = {
|
||||
let installedAppList
|
||||
common.header('Remove Installed Apps')
|
||||
await shellExec(adbRun + ' shell pm list packages -3').then(async function (result) {
|
||||
if (process.platform === 'win32' || process.platform === 'win64') {
|
||||
installedAppList = result.stdout.split('\r\n'); // split string on comma space
|
||||
} else {
|
||||
installedAppList = result.stdout.split('\n'); // split string on comma space
|
||||
}
|
||||
installedAppList.splice(-1, 1)
|
||||
});
|
||||
const value = await inquirer.installedApps(installedAppList);
|
||||
|
Loading…
x
Reference in New Issue
Block a user