Fixed bug in my rm commands.
This commit is contained in:
+4
-4
@@ -56,7 +56,7 @@ run_stormux_assistance_service() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ -z "$repositoryDir" ]]; then
|
if [[ -z "$repositoryDir" ]]; then
|
||||||
rm -r -- "$tempDir"
|
rm -rf -- "$tempDir"
|
||||||
start_installed_sas "$installedSas" \
|
start_installed_sas "$installedSas" \
|
||||||
"The latest Stormux Assistance Service could not be downloaded."
|
"The latest Stormux Assistance Service could not be downloaded."
|
||||||
return $?
|
return $?
|
||||||
@@ -64,7 +64,7 @@ run_stormux_assistance_service() {
|
|||||||
|
|
||||||
latestSas="$repositoryDir/sas.py"
|
latestSas="$repositoryDir/sas.py"
|
||||||
if ! validate_sas_script "$latestSas"; then
|
if ! validate_sas_script "$latestSas"; then
|
||||||
rm -r -- "$tempDir"
|
rm -rf -- "$tempDir"
|
||||||
start_installed_sas "$installedSas" \
|
start_installed_sas "$installedSas" \
|
||||||
"The downloaded Stormux Assistance Service failed validation."
|
"The downloaded Stormux Assistance Service failed validation."
|
||||||
return $?
|
return $?
|
||||||
@@ -76,14 +76,14 @@ run_stormux_assistance_service() {
|
|||||||
if ! sudo "${sudoFlags[@]}" install -m 0755 "$latestSas" "$stagedSas" ||
|
if ! sudo "${sudoFlags[@]}" install -m 0755 "$latestSas" "$stagedSas" ||
|
||||||
! sudo "${sudoFlags[@]}" mv -f "$stagedSas" "$installedSas"; then
|
! sudo "${sudoFlags[@]}" mv -f "$stagedSas" "$installedSas"; then
|
||||||
sudo "${sudoFlags[@]}" rm -f "$stagedSas"
|
sudo "${sudoFlags[@]}" rm -f "$stagedSas"
|
||||||
rm -r -- "$tempDir"
|
rm -rf -- "$tempDir"
|
||||||
start_installed_sas "$installedSas" \
|
start_installed_sas "$installedSas" \
|
||||||
"The Stormux Assistance Service could not be updated."
|
"The Stormux Assistance Service could not be updated."
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -r -- "$tempDir"
|
rm -rf -- "$tempDir"
|
||||||
"$installedSas"
|
"$installedSas"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user