From 45568ba8e7145de7a59ce877cc6eb4ed6eab5282 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 22 Jul 2026 00:18:53 -0400 Subject: [PATCH] Fixed bug in my rm commands. --- .includes/sas.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.includes/sas.sh b/.includes/sas.sh index 3f61d17..9b2f137 100644 --- a/.includes/sas.sh +++ b/.includes/sas.sh @@ -56,7 +56,7 @@ run_stormux_assistance_service() { done if [[ -z "$repositoryDir" ]]; then - rm -r -- "$tempDir" + rm -rf -- "$tempDir" start_installed_sas "$installedSas" \ "The latest Stormux Assistance Service could not be downloaded." return $? @@ -64,7 +64,7 @@ run_stormux_assistance_service() { latestSas="$repositoryDir/sas.py" if ! validate_sas_script "$latestSas"; then - rm -r -- "$tempDir" + rm -rf -- "$tempDir" start_installed_sas "$installedSas" \ "The downloaded Stormux Assistance Service failed validation." return $? @@ -76,14 +76,14 @@ run_stormux_assistance_service() { if ! sudo "${sudoFlags[@]}" install -m 0755 "$latestSas" "$stagedSas" || ! sudo "${sudoFlags[@]}" mv -f "$stagedSas" "$installedSas"; then sudo "${sudoFlags[@]}" rm -f "$stagedSas" - rm -r -- "$tempDir" + rm -rf -- "$tempDir" start_installed_sas "$installedSas" \ "The Stormux Assistance Service could not be updated." return $? fi fi - rm -r -- "$tempDir" + rm -rf -- "$tempDir" "$installedSas" }