Adcionado script para usuários que não usam distros baseadas em Debian ou Ubuntu

This commit is contained in:
Joshaby 2020-01-26 00:09:00 -03:00
parent a0788ec5cd
commit 8ebb15dc00

26
Install.sh Executable file
View file

@ -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!"