-A added to sudo in mount scripts

This commit is contained in:
Luke Smith
2018-08-02 14:30:01 -04:00
parent 9225981291
commit 0013b79d6e
2 changed files with 4 additions and 4 deletions

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."