mirror of
https://github.com/Adapta-Projects/Adapta-Nord.git
synced 2026-09-10 07:16:22 -04:00
Adcionado script para usuários que não usam distros baseadas em Debian ou Ubuntu
This commit is contained in:
parent
a0788ec5cd
commit
8ebb15dc00
26
Install.sh
Executable file
26
Install.sh
Executable 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!"
|
||||
Loading…
Reference in a new issue