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" }