diff options
author | Mateja Marić <mail@matejamaric.com> | 2021-02-07 12:49:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 12:49:43 +0100 |
commit | 3ed060173b0a3110aac0a5f53a4cb534531b3c28 (patch) | |
tree | ded04f4fe15f8490b8c0e48b9684b7d2e990bfe5 /scripts/unmount-usb | |
parent | 5d0c80a46c76dd1712f274ff6ddce05526253983 (diff) | |
parent | 3621cc09ea17c771d9c99d684d1e9bafc69fb222 (diff) | |
download | dotfiles-3ed060173b0a3110aac0a5f53a4cb534531b3c28.tar.gz dotfiles-3ed060173b0a3110aac0a5f53a4cb534531b3c28.zip |
Merge pull request #4 from MatejaMaric/fix-scripts
Fix issue #2
Diffstat (limited to 'scripts/unmount-usb')
-rwxr-xr-x | scripts/unmount-usb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/scripts/unmount-usb b/scripts/unmount-usb deleted file mode 100755 index c90dde4..0000000 --- a/scripts/unmount-usb +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -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!" -elif [ $opt_num == 1 ]; then - udiskie-umount "$options" -else - unmount_device=$(echo "$options" | dmenu -p "What device you want to unmount?") - [[ ! -z "$unmount_device" ]] && udiskie-umount "$unmount_device" -fi |