From 8b8ed9340c074c228df8fc284e0bf24c47efdecc Mon Sep 17 00:00:00 2001 From: zachir Date: Thu, 19 Oct 2023 17:48:53 -0500 Subject: Replace 'doas' with 'sudo' It's just simpler to use sudo than doas. Not because the program is easier (it isn't), but because I'm using Linux, and Linux generally expects sudo. --- dmenuumount | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dmenuumount') diff --git a/dmenuumount b/dmenuumount index 4af0394..6dc25e2 100755 --- a/dmenuumount +++ b/dmenuumount @@ -29,13 +29,13 @@ unmountusb() { chosen="$(echo "$drives" | $DMENU $DEFARGS "Unmount which drive?" $ARGS)" || exit 1 chosen="$(echo "$chosen" | awk '{print $1}')" [ -z "$chosen" ] && exit - doas umount "$chosen" && notify-send "💻 USB unmounting" "$chosen unmounted." + sudo umount "$chosen" && notify-send "💻 USB unmounting" "$chosen unmounted." } unmountandroid() { \ chosen="$(awk '/simple-mtpfs/ {print $2}' /etc/mtab | $DMENU $DEFARGS "Unmount which device?" $ARGS )" || exit 1 [ -z "$chosen" ] && exit - doas umount -l "$chosen" && notify-send "🤖 Android unmounting" "$chosen unmounted." + sudo umount -l "$chosen" && notify-send "🤖 Android unmounting" "$chosen unmounted." } asktype() { \ -- cgit v1.2.3