summaryrefslogtreecommitdiff
path: root/keyboard/mounter
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/mounter')
-rwxr-xr-xkeyboard/mounter2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboard/mounter b/keyboard/mounter
index 49d0b76..90c6caf 100755
--- a/keyboard/mounter
+++ b/keyboard/mounter
@@ -57,7 +57,7 @@ umnt() {
|| $notify "Error Unmounting Device \"$part\" from \"$mp\"" "$umountout"
# Remove mp directory if it is in mps
- [ "$(dirname "$mp")" = $mps ] && rm -rf "$mp"
+ [ "$(dirname "$mp")" = $mps ] && [ ! "$(ls -A "$mp")" ] && rm -rf "$mp"
}
case $1 in