Skip to content

Commit 39273e8

Browse files
committed
Update Code
1 parent 97037d8 commit 39273e8

File tree

6 files changed

+38
-55
lines changed

6 files changed

+38
-55
lines changed

install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set -e
1212
#
1313
########################################################
1414

15-
SCRIPT_VERSION="v1.0"
15+
SCRIPT_VERSION="v1.1"
1616

1717

1818
print_brake() {
@@ -32,11 +32,11 @@ reset="\e[0m"
3232
red='\033[0;31m'
3333

3434
error() {
35-
COLOR_RED='\033[0;31m'
36-
COLOR_NC='\033[0m'
35+
red='\033[0;31m'
36+
reset="\e[0m"
3737

3838
echo ""
39-
echo -e "* ${COLOR_RED}ERROR${COLOR_NC}: $1"
39+
echo -e "* ${red}ERROR${reset}: $1"
4040
echo ""
4141
}
4242

themes/version1.x/Dracula/build.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set -e
1515

1616
#### Fixed Variables ####
1717

18-
SCRIPT_VERSION="v0.9"
18+
SCRIPT_VERSION="v1.1"
1919
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
2020

2121

@@ -145,15 +145,11 @@ case "$OS" in
145145
debian | ubuntu)
146146
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt-get install -y nodejs
147147
;;
148+
centos)
149+
[ "$OS_VER_MAJOR" == "7" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
150+
[ "$OS_VER_MAJOR" == "8" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
151+
;;
148152
esac
149-
150-
if [ "$OS_VER_MAJOR" == "7" ]; then
151-
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
152-
fi
153-
154-
if [ "$OS_VER_MAJOR" == "8" ]; then
155-
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
156-
fi
157153
}
158154

159155

@@ -238,7 +234,7 @@ fi
238234
bye() {
239235
print_brake 50
240236
echo
241-
echo -e "* ${GREEN}The theme ${YELLOW}Dracula${GREEN} was successfully installed."
237+
echo -e "${GREEN}* The theme ${YELLOW}Dracula${GREEN} was successfully installed."
242238
echo -e "* A security backup of your panel has been created."
243239
echo -e "* Thank you for using this script."
244240
echo -e "* Support group: ${YELLOW}$(hyperlink "$SUPPORT_LINK")${reset}"

themes/version1.x/Enola/build.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set -e
1515

1616
#### Fixed Variables ####
1717

18-
SCRIPT_VERSION="v0.9"
18+
SCRIPT_VERSION="v1.1"
1919
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
2020

2121

@@ -145,15 +145,11 @@ case "$OS" in
145145
debian | ubuntu)
146146
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt-get install -y nodejs
147147
;;
148+
centos)
149+
[ "$OS_VER_MAJOR" == "7" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
150+
[ "$OS_VER_MAJOR" == "8" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
151+
;;
148152
esac
149-
150-
if [ "$OS_VER_MAJOR" == "7" ]; then
151-
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
152-
fi
153-
154-
if [ "$OS_VER_MAJOR" == "8" ]; then
155-
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
156-
fi
157153
}
158154

159155

@@ -220,6 +216,7 @@ echo
220216
print_brake 25
221217
echo -e "* ${GREEN}Producing panel...${reset}"
222218
print_brake 25
219+
echo
223220
if [ -d "$PTERO/node_modules" ]; then
224221
cd "$PTERO"
225222
yarn add @emotion/react
@@ -237,7 +234,7 @@ fi
237234
bye() {
238235
print_brake 50
239236
echo
240-
echo -e "* ${GREEN}The theme ${YELLOW}Enola${GREEN} was successfully installed."
237+
echo -e "${GREEN}* The theme ${YELLOW}Enola${GREEN} was successfully installed."
241238
echo -e "* A security backup of your panel has been created."
242239
echo -e "* Thank you for using this script."
243240
echo -e "* Support group: ${YELLOW}$(hyperlink "$SUPPORT_LINK")${reset}"

themes/version1.x/FlancoTheme/build.sh

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set -e
1515

1616
#### Fixed Variables ####
1717

18-
SCRIPT_VERSION="v0.9"
18+
SCRIPT_VERSION="v1.1"
1919
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
2020

2121

@@ -143,17 +143,13 @@ print_brake 30
143143
echo
144144
case "$OS" in
145145
debian | ubuntu)
146-
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt-get install -y nodejs && sudo apt-get install -y zip
146+
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt-get install -y nodejs
147+
;;
148+
centos)
149+
[ "$OS_VER_MAJOR" == "7" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
150+
[ "$OS_VER_MAJOR" == "8" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
147151
;;
148152
esac
149-
150-
if [ "$OS_VER_MAJOR" == "7" ]; then
151-
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn && sudo yum install -y zip
152-
fi
153-
154-
if [ "$OS_VER_MAJOR" == "8" ]; then
155-
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs && sudo dnf install -y zip
156-
fi
157153
}
158154

159155

@@ -211,6 +207,7 @@ echo
211207
print_brake 25
212208
echo -e "* ${GREEN}Producing panel...${reset}"
213209
print_brake 25
210+
echo
214211
if [ -d "$PTERO/node_modules" ]; then
215212
cd "$PTERO"
216213
yarn add @emotion/react
@@ -228,7 +225,7 @@ fi
228225
bye() {
229226
print_brake 50
230227
echo
231-
echo -e "* ${GREEN}The theme ${YELLOW}Flanco Theme${GREEN} was successfully installed."
228+
echo -e "${GREEN}* The theme ${YELLOW}Flanco Theme${GREEN} was successfully installed."
232229
echo -e "* A security backup of your panel has been created."
233230
echo -e "* Thank you for using this script."
234231
echo -e "* Support group: ${YELLOW}$(hyperlink "$SUPPORT_LINK")${reset}"

themes/version1.x/Twilight/build.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set -e
1515

1616
#### Fixed Variables ####
1717

18-
SCRIPT_VERSION="v0.9"
18+
SCRIPT_VERSION="v1.1"
1919
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
2020

2121

@@ -145,15 +145,11 @@ case "$OS" in
145145
debian | ubuntu)
146146
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt-get install -y nodejs
147147
;;
148+
centos)
149+
[ "$OS_VER_MAJOR" == "7" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
150+
[ "$OS_VER_MAJOR" == "8" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
151+
;;
148152
esac
149-
150-
if [ "$OS_VER_MAJOR" == "7" ]; then
151-
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
152-
fi
153-
154-
if [ "$OS_VER_MAJOR" == "8" ]; then
155-
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
156-
fi
157153
}
158154

159155

@@ -220,6 +216,7 @@ echo
220216
print_brake 25
221217
echo -e "* ${GREEN}Producing panel...${reset}"
222218
print_brake 25
219+
echo
223220
if [ -d "$PTERO/node_modules" ]; then
224221
cd "$PTERO"
225222
yarn add @emotion/react
@@ -237,7 +234,7 @@ fi
237234
bye() {
238235
print_brake 50
239236
echo
240-
echo -e "* ${GREEN}The theme ${YELLOW}Twilight${GREEN} was successfully installed."
237+
echo -e "${GREEN}* The theme ${YELLOW}Twilight${GREEN} was successfully installed."
241238
echo -e "* A security backup of your panel has been created."
242239
echo -e "* Thank you for using this script."
243240
echo -e "* Support group: ${YELLOW}$(hyperlink "$SUPPORT_LINK")${reset}"

themes/version1.x/ZingTheme/build.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set -e
1515

1616
#### Fixed Variables ####
1717

18-
SCRIPT_VERSION="v1.0"
18+
SCRIPT_VERSION="v1.1"
1919
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
2020

2121

@@ -151,15 +151,11 @@ case "$OS" in
151151
debian | ubuntu)
152152
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt-get install -y nodejs
153153
;;
154+
centos)
155+
[ "$OS_VER_MAJOR" == "7" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
156+
[ "$OS_VER_MAJOR" == "8" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
157+
;;
154158
esac
155-
156-
if [ "$OS_VER_MAJOR" == "7" ]; then
157-
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
158-
fi
159-
160-
if [ "$OS_VER_MAJOR" == "8" ]; then
161-
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
162-
fi
163159
}
164160

165161

@@ -272,7 +268,7 @@ fi
272268
bye() {
273269
print_brake 50
274270
echo
275-
echo -e "* ${GREEN}The theme ${YELLOW}Zing Theme${GREEN} was successfully installed."
271+
echo -e "${GREEN}* The theme ${YELLOW}Zing Theme${GREEN} was successfully installed."
276272
echo -e "* A security backup of your panel has been created."
277273
echo -e "* Thank you for using this script."
278274
echo -e "* Support group: ${YELLOW}$(hyperlink "$SUPPORT_LINK")${reset}"

0 commit comments

Comments
 (0)