From aea05bb610b1f871b27af6a6781ae828450f1fe9 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Sun, 18 Feb 2024 00:04:43 +0300 Subject: [PATCH] fix install_page cmd commands --- debian/changelog | 2 +- src/partitioning_page/mod.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index f02a4f3..d34bb64 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -pika-installer-gtk4 (1.0.0-100pika13) pikauwu; urgency=low +pika-installer-gtk4 (1.0.0-100pika14) pikauwu; urgency=low * First release diff --git a/src/partitioning_page/mod.rs b/src/partitioning_page/mod.rs index 7b6136d..a88835d 100644 --- a/src/partitioning_page/mod.rs +++ b/src/partitioning_page/mod.rs @@ -264,13 +264,13 @@ pub fn partitioning_page( fs::remove_file("/tmp/pika-installer-gtk4-target-manual-luks.txt").expect("Bad permissions on /tmp/pika-installer-gtk4-target-manual.txt"); } if Path::new("/tmp/pika-installer-gtk4-fail.txt").exists() { - cmd!("sudo", "rm", "-rf", "/tmp/pika-installer-gtk4-fail.txt").run(); + let _ = cmd!("bash","-c","sudo rm -rfv /tmp/pika-installer-gtk4-fail.txt").run(); } if Path::new("/tmp/pika-installer-gtk4-successful.txt").exists() { - cmd!("sudo", "rm", "-rf", "/tmp/pika-installer-gtk4-successful.txt").run(); + let _ = cmd!("bash","-c","sudo rm -rfv /tmp/pika-installer-gtk4-successful.txt").run(); } - for status_file in glob("/tmp/pika-installer-gtk4-status*").expect("Failed to read glob pattern") { - cmd!("sudo", "rm", "-rf", "/tmp/pika-installer-gtk4-status*").run(); + for _status_file in glob("/tmp/pika-installer-gtk4-status*").expect("Failed to read glob pattern") { + let _ = cmd!("bash","-c","sudo rm -rfv /tmp/pika-installer-gtk4-status*").run(); } for partition_file in glob("/tmp/pika-installer-gtk4-target-manual-p*").expect("Failed to read glob pattern") { let partition_file = partition_file.unwrap();