summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2021-05-04 14:50:21 +0100
committerdakkar <dakkar@thenautilus.net>2021-05-04 14:50:21 +0100
commit6e9f1540185eadd9a0f383c028e8a70279ffacce (patch)
treefeeef73785eff7411938d4cc858b163f5ca66d27
parentfix passing flags in git-landed (diff)
downloadmisc-scripts-master.tar.gz
misc-scripts-master.tar.bz2
misc-scripts-master.zip
dmount ignores mounted fsHEADmaster
-rwxr-xr-xbin/dmount2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/dmount b/bin/dmount
index 794de4f..45448e3 100755
--- a/bin/dmount
+++ b/bin/dmount
@@ -24,6 +24,8 @@ sub filter_dev {
return unless $dev->_net_dbus_introspector->has_interface('org.freedesktop.UDisks2.Filesystem');
my $ignore = try { $dev->HintIgnore } catch { 1 };
return if $ignore;
+ my $mounted = try { $dev->MountPoints->@* } catch { 1 };
+ return if $mounted;
return $dev;
}