1 Commits

Author SHA1 Message Date
Cametendo
ee7c2ba46b Fix 'Program doesnt close when saying i dont want to flash a image' 2026-04-23 11:41:23 +02:00
3 changed files with 10 additions and 3 deletions

1
.gitignore vendored
View File

@@ -36,3 +36,4 @@ hs_err_pid*
.project .project
.settings/ .settings/
.vscode/ .vscode/
PKGBUILD

View File

@@ -6,7 +6,13 @@ public class Greeting {
public static void greeting(Scanner UserInput) { public static void greeting(Scanner UserInput) {
System.out.println("Welcome to cflash!"); System.out.println("Welcome to cflash!");
System.out.println("Would you like to flash an image (Y/n)"); System.out.println("Would you like to flash an image (Y/n)");
UserInput.nextLine(); String input = UserInput.nextLine();
if (YesNo.check(input)) {
System.out.println("Please choose the to be flashed device (f. e. sda)");
} else {
System.out.println("Canceling...");
System.exit(0);
}
} }
} }