File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -325,8 +325,7 @@ export default function terminalSettings() {
325325 */
326326 async function terminalRestore ( ) {
327327 try {
328- await Executor . execute ( "rm -rf $PREFIX/aterm_backup.tar" ) ;
329- await Executor . execute ( "rm -rf $PREFIX/aterm_backup.bin" ) ;
328+ await Executor . execute ( "rm -rf $PREFIX/aterm_backup.*" ) ;
330329
331330 sdcard . openDocumentFile (
332331 async ( data ) => {
@@ -343,11 +342,9 @@ export default function terminalSettings() {
343342 // Restore
344343 await Terminal . restore ( ) ;
345344
346- // Clean up
347- const backupFilename = "aterm_backup.tar" ;
348- const tempBackupPath = cordova . file . dataDirectory + backupFilename ;
349- const tempFS = fsOperation ( tempBackupPath ) ;
350- await tempFS . delete ( ) ;
345+ //Cleanup restore file
346+ await Executor . execute ( "rm -rf $PREFIX/aterm_backup.*" ) ;
347+
351348 loader . removeTitleLoader ( ) ;
352349 alert (
353350 strings . success . toUpperCase ( ) ,
You can’t perform that action at this time.
0 commit comments