-A added to sudo in mount scripts

This commit is contained in:
Luke Smith committed 2018-08-02 14:30:01 -04:00
1 parent 9225981291
commit 0013b79d6e
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -9,4 +9,4 @@ drives=$(lsblk -rpo "$COLS" | awk '$2=="part"&&$4!~/boot|home|SWAP/&&length($4)>
[ -z "$drives" ] && exit
chosen=$(echo "$drives" | dmenu -i -p "Unmount which drive?" | awk '{print $1}')
[ -z "$chosen" ] && exit
sudo umount "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted."
sudo -A umount "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted."