From 8ebb15dc00237c6fe8ffcf17c6543e170e6611db Mon Sep 17 00:00:00 2001 From: Joshaby Date: Sun, 26 Jan 2020 00:09:00 -0300 Subject: [PATCH] =?UTF-8?q?Adcionado=20script=20para=20usu=C3=A1rios=20que?= =?UTF-8?q?=20n=C3=A3o=20usam=20distros=20baseadas=20em=20Debian=20ou=20Ub?= =?UTF-8?q?untu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Install.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 Install.sh diff --git a/Install.sh b/Install.sh new file mode 100755 index 0000000..bb73fdc --- /dev/null +++ b/Install.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +GREEN=`tput setaf 2` +RESET=`tput sgr0` + +echo -e "${GREEN}Welcome to the Adapta-Nord text mode installer!\n\n\tIf the user running this script is root,the theme will go to the /usr/share/themes folder,\n\tif it is another, the theme will go to the .themes folder!\n${GREEN}${RESET}" + +PREFIX="Pkg/usr/share/themes" +LOCAL="/usr/share/themes" + +if [ ! $USER = "root" ] +then + if [ ! -d /home/$USER/.themes ] + then + mkdir /home/$USER/.themes + echo -e "Created ./theme\n" + fi + LOCAL="/home/$USER/.themes" +fi + +echo "User: "$USER +echo "Local of instalation: "$LOCAL + +cp -rf $PREFIX/Adapta* $LOCAL + +echo -e "\nInstallation complete!" \ No newline at end of file