1 parent c34f93a commit 294b97fCopy full SHA for 294b97f
1 file changed
nix/package/default.nix
@@ -26,6 +26,17 @@ writeShellScriptBin "glim" ''
26
exit 1
27
fi
28
29
+ # Use alternative if sudo is not found
30
+ if [[ ! `which sudo &>/dev/null` ]]; then
31
+ if which doas &>/dev/null; then
32
+ alias sudo=doas
33
+ else
34
+ sudo () {
35
+ su -c "$*"
36
+ }
37
+ fi
38
39
+
40
# Find GLIM device (use the first if multiple found, you've asked for trouble!)
41
USBDEV1=`blkid -L GLIM | head -n 1`
42
0 commit comments