We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc007e9 commit 1ea9f77Copy full SHA for 1ea9f77
1 file changed
src/plugins/terminal/www/Terminal.js
@@ -91,9 +91,15 @@ const Terminal = {
91
* @returns {Promise<boolean>} - Returns true if installation completes with exit code 0
92
*/
93
async install(logger = console.log, err_logger = console.error) {
94
- if (await this.isInstalled()) return true;
95
if (!(await this.isSupported())) return false;
96
+ try {
97
+ //cleanup before insatll
98
+ await this.uninstall();
99
+ } catch (e) {
100
+ //supress error
101
+ }
102
+
103
const filesDir = await new Promise((resolve, reject) => {
104
system.getFilesDir(resolve, reject);
105
});
0 commit comments