Skip to content

Commit

Permalink
Add doas support.
Browse files Browse the repository at this point in the history
  • Loading branch information
iguanajuice authored Apr 7, 2024
1 parent 5bbf5ac commit c6b8082
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions glim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ if [[ `id -u` -eq 0 ]]; then
exit 1
fi

# Alias sudo to doas if sudo isn't installed
if [[ ! `command -v sudo` ]]; then
alias sudo doas
fi

# Sanity check : GRUB2
if which grub2-install &>/dev/null; then
GRUB2_INSTALL="grub2-install"
Expand Down

0 comments on commit c6b8082

Please sign in to comment.