Skip to content

Commit c6b8082

Browse files
authored
Add doas support.
1 parent 5bbf5ac commit c6b8082

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

glim.sh

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ if [[ `id -u` -eq 0 ]]; then
99
exit 1
1010
fi
1111

12+
# Alias sudo to doas if sudo isn't installed
13+
if [[ ! `command -v sudo` ]]; then
14+
alias sudo doas
15+
fi
16+
1217
# Sanity check : GRUB2
1318
if which grub2-install &>/dev/null; then
1419
GRUB2_INSTALL="grub2-install"

0 commit comments

Comments
 (0)