summaryrefslogtreecommitdiff
path: root/dmenuumount
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-10-19 17:48:53 -0500
committerzachir <zachir@librem.one>2023-10-19 17:48:53 -0500
commit8b8ed9340c074c228df8fc284e0bf24c47efdecc (patch)
tree4ed9b6e943026086f2c7c0494cbf757c7faeaa06 /dmenuumount
parent6e72884bb5d0d046b37df86aedad33f0f60557f3 (diff)
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.
Diffstat (limited to 'dmenuumount')
-rwxr-xr-xdmenuumount4
1 files changed, 2 insertions, 2 deletions
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() { \