Fix 'Program doesnt close when saying i dont want to flash a image'

This commit is contained in:
Cametendo
2026-04-23 11:41:23 +02:00
parent d0d239e0ca
commit ee7c2ba46b
3 changed files with 10 additions and 3 deletions

1
.gitignore vendored
View File

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

View File

@@ -6,7 +6,13 @@ public class Greeting {
public static void greeting(Scanner UserInput) {
System.out.println("Welcome to cflash!");
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);
}
}
}