From 061c5efe58ab33deef712f7b8199efa7a3083352 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Sun, 25 Nov 2018 21:41:10 +0100 Subject: Cleaned mount scripts --- dmenuUmount.sh | 2 -- 1 file changed, 2 deletions(-) (limited to 'dmenuUmount.sh') diff --git a/dmenuUmount.sh b/dmenuUmount.sh index ecc5160..99e60db 100644 --- a/dmenuUmount.sh +++ b/dmenuUmount.sh @@ -21,10 +21,8 @@ do i=$((i+1)) drives="$drives$i. $( echo "$line" | awk '{print $1, "(" $4 ")", "on", $7}' )"$'\n' done <<< "$(lsblk -lp | grep "part /" | grep -v "$exclusionregex" )" - [[ "$drives" = "" ]] && exit lines=$(echo "$drives" | wc -l) chosen=$(echo "$drives" | dmenu -i -l $lines -p "Unmount which drive?" | awk '{print $2}') [[ "$chosen" = "" ]] && exit umount $chosen && pgrep -x dunst && notify-send "$chosen unmounted." -#umount $chosen && notify-send "$chosen unmounted." -- cgit v1.2.1