diff options
author | jnats <dev@jnats.xyz> | 2021-04-24 01:15:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-24 01:15:15 +0100 |
commit | 27356e53475ace723dc01fc8e464ee6db8d8670b (patch) | |
tree | a828fe50e24659481d9f4f1bf75dee610d1c72e0 /install.sh | |
parent | b44457044ae026d5613764bdf231dbdec7250dcf (diff) | |
download | nofetch-27356e53475ace723dc01fc8e464ee6db8d8670b.tar.gz nofetch-27356e53475ace723dc01fc8e464ee6db8d8670b.tar.bz2 |
Update install.sh
Diffstat (limited to 'install.sh')
-rw-r--r-- | install.sh | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,18 +1,28 @@ #!/bin/bash +FILE=./nofetch + +if ! test -f $FILE; +then + curl -LO https://raw.githubusercontent.com/jnats/nofetch/main/nofetch +fi + if [ $EUID -eq 0 ] then echo "[/] uid 0" + rm $(which nofetch > /dev/null 2>&1) > /dev/null 2>&1 chmod +x nofetch - sudo cp nofetch /usr/local/bin + cp nofetch /usr/local/bin elif command -v doas &> /dev/null then echo "[/] doas" + doas rm $(which nofetch > /dev/null 2>&1) > /dev/null 2>&1 chmod +x nofetch doas cp nofetch /usr/local/bin elif command -v sudo &> /dev/null then echo "[/] sudo" + sudo rm $(which nofetch > /dev/null 2>&1) > /dev/null 2>&1 chmod +x nofetch sudo cp nofetch /usr/local/bin else |