From 27356e53475ace723dc01fc8e464ee6db8d8670b Mon Sep 17 00:00:00 2001 From: jnats Date: Sat, 24 Apr 2021 01:15:15 +0100 Subject: Update install.sh --- install.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b7b77d2..010ab3e 100644 --- a/install.sh +++ b/install.sh @@ -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 -- cgit v1.2.3