more clenaup
This commit is contained in:
parent
4893d4c124
commit
42138024a9
@ -4,10 +4,10 @@ const figlet = require('figlet');
|
||||
const fs = require('fs')
|
||||
var pjson = require('../package.json');
|
||||
const fetch = require('node-fetch');
|
||||
var shell = require('shelljs');
|
||||
|
||||
const globalVariables = require('../lib/globalVars');
|
||||
|
||||
|
||||
module.exports = {
|
||||
header: (page) => {
|
||||
clear();
|
||||
@ -63,4 +63,7 @@ module.exports = {
|
||||
.then(res => res.json())
|
||||
return response
|
||||
},
|
||||
clearApkFolder: async () => {
|
||||
await shell.rm('-rf', './data/apps/*.apk');
|
||||
},
|
||||
}
|
@ -75,7 +75,7 @@ module.exports = {
|
||||
const compatibleApps = await common.getCompatibleAppsList()
|
||||
const value = await inquirer.compatibleApps();
|
||||
|
||||
await shell.rm('-rf', './data/apps/*.apk');
|
||||
await common.clearApkFolder()
|
||||
|
||||
for (let element of value.removeAppsList) {
|
||||
for (let element2 of compatibleApps) {
|
||||
@ -247,7 +247,7 @@ module.exports = {
|
||||
logger.info("Remove Complete")
|
||||
logger.info("Compatible Apps")
|
||||
|
||||
await shell.rm('-rf', './data/apps/*.apk');
|
||||
await common.clearApkFolder()
|
||||
|
||||
const compatibleApps = await common.getCompatibleAppsList()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user