Fixed bug in my rm commands.
This commit is contained in:
+4
-4
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user