From 3131fabca2dd3fa0a641f1c69b66ae1e89139330 Mon Sep 17 00:00:00 2001 From: axtlos Date: Thu, 31 Mar 2022 22:35:02 +0200 Subject: [PATCH] json and efi check fixes --- lib/functions/install.dart | 2 +- lib/main.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions/install.dart b/lib/functions/install.dart index d7d66f7..bf49077 100644 --- a/lib/functions/install.dart +++ b/lib/functions/install.dart @@ -45,7 +45,7 @@ Widget install( enableSudo: enableSudo, rootPass: rootPass, desktop: desktop, - disk: disk, + disk: disk.replaceAll("/dev/", ""), isEfi: isEfi, bootloader: bootloader, hostname: hostname, diff --git a/lib/main.dart b/lib/main.dart index d4abe9c..a19e747 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -21,7 +21,7 @@ Future checkIsEfi(setState) async { .then((ProcessResult result) { return result.stdout; }); - bool isEfi = scriptOutput == "UEFI" ? false : true; + bool isEfi = scriptOutput == "UEFI" ? true : false; debugPrint(isEfi.toString()); debugPrint(scriptOutput); setState(isEfi);