diff options
author | Mateja <mail@matejamaric.com> | 2020-08-25 22:06:45 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-08-25 22:06:45 +0200 |
commit | d64d2ab3b7c999f5b7292433b039b60bc50a2424 (patch) | |
tree | 6bff42a10e61df5d29ab6233c76efbb349aff600 /stuff/scripts/unmount-usb | |
parent | 0f0f13c845607ec461a2d07b4886a28f3ea70e7e (diff) | |
download | dotfiles-d64d2ab3b7c999f5b7292433b039b60bc50a2424.tar.gz dotfiles-d64d2ab3b7c999f5b7292433b039b60bc50a2424.zip |
stopped using rofi
Diffstat (limited to 'stuff/scripts/unmount-usb')
-rwxr-xr-x | stuff/scripts/unmount-usb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stuff/scripts/unmount-usb b/stuff/scripts/unmount-usb index f195317..dfcb078 100755 --- a/stuff/scripts/unmount-usb +++ b/stuff/scripts/unmount-usb @@ -6,6 +6,6 @@ if [ $opt_num == 0 ]; then elif [ $opt_num == 1 ]; then udiskie-umount "$options" else - unmount_device=$(echo "$options" | rofi -dmenu -p "What device you want to unmount?") - udiskie-umount "$unmount_device" + unmount_device=$(echo "$options" | dmenu -p "What device you want to unmount?") + [[ ! -z "$unmount_device" ]] && udiskie-umount "$unmount_device" fi |