diff --git a/lib/interactive.dart b/lib/interactive.dart index f24ea746..a8f94834 100644 --- a/lib/interactive.dart +++ b/lib/interactive.dart @@ -131,7 +131,7 @@ Future> getZips() async { pressEnterToContinue(); } if (!files.files.every((e) => - File(e.path!).statSync().type == FileSystemEntityType.file && + File(e.path!).statSync().type == FileSystemEntityType.file && RegExp(r'\.(zip|tgz)$').hasMatch(e.path!))) { print('Files: [${files.files.map((e) => p.basename(e.path!)).join(', ')}]'); error('Not all files you selected are zips :/ please do this again'); @@ -238,23 +238,23 @@ Future freeSpaceNotice(int required, Directory dir) async { if (freeSpace == null) { print( 'Note: everything will take ~${filesize(required)} of disk space - ' - 'make sure you have that available on ${dir.path} - otherwise, ' - 'Ctrl-C to exit, and make some free space!\n' - 'Or: unzip manually, remove the zips and use gpth with cmd options', + 'make sure you have that available on ${dir.path} - otherwise, ' + 'Ctrl-C to exit, and make some free space!\n' + 'Or: unzip manually, remove the zips and use gpth with cmd options', ); } else if (freeSpace < required) { print( '!!! WARNING !!!\n' - 'Whole process requires ${filesize(required)} of space, but you ' - 'only have ${filesize(freeSpace)} available on ${dir.path} - \n' - 'Go make some free space!\n' - '(Or: unzip manually, remove the zips, and use gpth with cmd options)', + 'Whole process requires ${filesize(required)} of space, but you ' + 'only have ${filesize(freeSpace)} available on ${dir.path} - \n' + 'Go make some free space!\n' + '(Or: unzip manually, remove the zips, and use gpth with cmd options)', ); quit(69); } else { print( '(Note: everything will take ~${filesize(required)} of disk space - ' - 'you have ${filesize(freeSpace)} free so should be fine :)', + 'you have ${filesize(freeSpace)} free so should be fine :)', ); } await sleep(3);