Fix 'Program doesnt close when saying i dont want to flash a image'
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -36,3 +36,4 @@ hs_err_pid*
|
|||||||
.project
|
.project
|
||||||
.settings/
|
.settings/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
PKGBUILD
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user