aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-08 23:34:09 +0100
committerMateja <mail@matejamaric.com>2020-11-08 23:34:09 +0100
commitda3df637a566001805532b57c534e6fc1c7aacf4 (patch)
tree54ec9dd98511f056b99b53b4081a62bd6df218a5
parentc5f36f518f23fde74b90f8e67a87abe53acca1f2 (diff)
downloaddotfiles-da3df637a566001805532b57c534e6fc1c7aacf4.tar.gz
dotfiles-da3df637a566001805532b57c534e6fc1c7aacf4.zip
Fix unmount-usb work for Debian.
-rwxr-xr-xstuff/scripts/unmount-usb2
1 files changed, 1 insertions, 1 deletions
diff --git a/stuff/scripts/unmount-usb b/stuff/scripts/unmount-usb
index dfcb078..c90dde4 100755
--- a/stuff/scripts/unmount-usb
+++ b/stuff/scripts/unmount-usb
@@ -1,5 +1,5 @@
#!/bin/bash
-options=$(lsblk | grep /run/media/$USER | rev | cut -d ' ' -f 1 | rev)
+options=$(lsblk | grep /media/$USER | rev | cut -d ' ' -f 1 | rev)
[ -n "$options" ] && opt_num=$(echo "$options" | wc -l) || opt_num=0
if [ $opt_num == 0 ]; then
notify-send "Nothing mounted!"