diff options
author | jnats <dev@jnats.xyz> | 2021-04-24 11:17:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-24 11:17:12 +0100 |
commit | a855642cb0693ad8ce1489af751b3ea4906c61a4 (patch) | |
tree | ac77d0ebd45aea3309bf329c4e703ebbd07c70ee | |
parent | b759c4af67020635969d14dafdcbb6096997e94a (diff) | |
download | nofetch-a855642cb0693ad8ce1489af751b3ea4906c61a4.tar.gz nofetch-a855642cb0693ad8ce1489af751b3ea4906c61a4.tar.bz2 |
install.sh now creates /usr/local/bin if not present
this is really strange, but when testing in macOS i realised that by default `/usr/local/bin` is in the path... but doesn't actually exist
-rw-r--r-- | install.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -12,18 +12,21 @@ then echo "[/] uid 0" rm $(which nofetch > /dev/null 2>&1) > /dev/null 2>&1 chmod +x nofetch + mkdir -p /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 mkdir -p /usr/local/bin 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 mkdir -p /usr/local/bin 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" |