summaryrefslogtreecommitdiff
path: root/dmount
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-10-24 07:57:06 -0500
committerzachir <zachir@librem.one>2023-10-24 07:57:06 -0500
commite70b4be988bae1ef98326a21321d476fd6a8afd0 (patch)
treeb63beb54cc51f34c7f2c08821a231176067afb7f /dmount
parentafb4b7b9dba90eb0f00a06864450b7a38a399626 (diff)
Use sudo instead of doas
Not because of technical superiority, but in Linux we can expect sudo is installed, and doas will not be supported as well.
Diffstat (limited to 'dmount')
-rwxr-xr-xdmount4
1 files changed, 2 insertions, 2 deletions
diff --git a/dmount b/dmount
index bc49df5..f281f43 100755
--- a/dmount
+++ b/dmount
@@ -85,7 +85,7 @@ getmount() { \
if [ ! -d "$mp" ]; then
mkdiryn=$(printf "No\\nYes" | $DMENU $ARGS $DEFARGS "$mp does not exist. Create it?") || \
exit 1
- [ "$mkdiryn" = "Yes" ] && (mkdir -p "$mp" || doas mkdir -p "$mp")
+ [ "$mkdiryn" = "Yes" ] && (mkdir -p "$mp" || sudo mkdir -p "$mp")
fi
}
@@ -110,7 +110,7 @@ mount_device () {
MOUNTPROPS="${MOUNTPROPS},force,rw"
fi
fi
- doas mount $MOUNTARGS $MOUNTPROPS "$1" "$mp" && show "Mounted successfully\n"
+ sudo mount $MOUNTARGS $MOUNTPROPS "$1" "$mp" && show "Mounted successfully\n"
}
DEVICE="$(get_available | $DMENU $DEFARGS "Devices" $ARGS )"