aboutsummaryrefslogtreecommitdiff
path: root/lib/beam
diff options
context:
space:
mode:
Diffstat (limited to 'lib/beam')
-rw-r--r--lib/beam/s3.sh17
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/beam/s3.sh b/lib/beam/s3.sh
index 39416d7..a89220d 100644
--- a/lib/beam/s3.sh
+++ b/lib/beam/s3.sh
@@ -81,9 +81,16 @@ s3_mount() {
s3_unmount()
{
- for id in s3 backer
- do
- mpoint=$(s3_getmpoint $id)
- test -n "$mpoint" && $dry_run umount $mpoint
- done
+ if test -- "$1" = "--force"; do
+ for id in s3 backer
+ do
+ mpoint=$(s3_getmpoint $id)
+ test -n "$mpoint" && $dry_run umount $mpoint
+ done
+ else
+ for mpoint in $umount_list
+ do
+ test -n "$mpoint" && $dry_run umount $mpoint
+ done
+ fi
}

Return to:

Send suggestions and report system problems to the System administrator.