blob: 6c0f806c84dc2b89412c716cf84513588dcddbc0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
if [ $EUID -eq 0 ]
then
if [ $DEBUG -eq 1 ]
then
echo "[/] uid 0"
fi
chmod +x nofetch
sudo cp nofetch /usr/local/bin
elif command -v doas &> /dev/null
then
if [ $DEBUG -eq 1 ]
then
echo "[/] doas"
fi
chmod +x nofetch
doas cp nofetch /usr/local/bin
elif command -v sudo &> /dev/null
then
if [ $DEBUG -eq 1 ]
then
echo "[/] sudo"
fi
chmod +x nofetch
sudo cp nofetch /usr/local/bin
else
echo "\n[X] neither doas nor sudo found, and command isn't running as root, have you checked README.md ?\n"
fi
|