diff --git a/glim.sh b/glim.sh index 65f5e5c..f47ab29 100755 --- a/glim.sh +++ b/glim.sh @@ -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"