Skip to content

Instantly share code, notes, and snippets.

@huezo
Created July 30, 2020 17:11
Show Gist options
  • Save huezo/cd62cab40457553e2dbaea2756caa951 to your computer and use it in GitHub Desktop.
Save huezo/cd62cab40457553e2dbaea2756caa951 to your computer and use it in GitHub Desktop.
Instalador de screenfetch
#!/bin/bash
#!/bin/sh
if [ "$(whoami)" == "root" ] ; then
# you are root
#sudo cd /usr/bin/
#sudo wget -O screenfetch-dev https://git.io/vaHfR
sudo curl -L https://git.io/vaHfR > /usr/bin/screenfetch-dev
sudo chmod +x /usr/bin/screenfetch-dev
screenfetch-dev
#sudo su
# cd /usr/bin/
#sudo wget -O screenfetch https://git.io/vaHfR
sudo curl -L https://git.io/vaHfR > /usr/bin/screenfetch-dev
sudo curl -L https://git.io/vaHfR > /usr/bin/screenfetch
sudo chmod +x /usr/bin/screenfetch
screenfetch
else
# you are not root
echo "No eres root"
echo ""
echo "you are not root"
echo "sigue las siguientes instrucciones:"
echo "sudo su"
echo "# bash install-screenfetch.bash"
echo "o"
echo "sudo bash install-screenfetch.bash"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment