~freed00m/dotfiles

dotfiles/.local/bin/yay-doas-wrapper -rwxr-xr-x 214 bytes
88959f68Antonin Dach Sun Oct 2 12:27:51 PM CEST 2022 2 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
#
#  This wrapper makes sure yay+pacui works with doas
#
echo $@

if [ "$1" = "-v" ]; then
	shift
fi

if [ "$1" = "--" ]; then
	shift
fi

if [ -z "$1" ]
then
	exec doas /bin/true
else
	exec doas "$@"
fi