-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathInstall-Zafiro-Icons.sh
executable file
·196 lines (179 loc) · 7.06 KB
/
Install-Zafiro-Icons.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
#!/bin/bash
#Creator: Adolfo Silerio a.k.a ZAYRONXIO
#mail: zayronxio@gmail.com
###########
#[en]Created required directories
echo "Created required directories"
if [ -d "$HOME/.local/share/icons" ]
then
#accediendo a directorio de trabajo
cd $HOME/.local/share/icons
#descarga y descompresion de archivos
wget -N /~https://github.com/zayronxio/Zafiro-icons/archive/refs/heads/master.zip
if [ -f "$HOME/.local/share/icons/Zafiro-icons-master" ]
then
rm -r $HOME/.local/share/icons/Zafiro-icons-master
else
#descomprimiendo archivo
unzip master.zip
fi
#eliminando versiones anteriores
sleep 3s
if [ -d "$HOME/.local/share/icons/Zafiro-icons-master" ]
then
cd $HOME/.local/share/icons/Zafiro-icons-master
if [ -d "$HOME/.local/share/icons/Zafiro-Icons" ]
then
rm -r $HOME/.local/share/icons/Zafiro-Icons
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/Zafiro-icons" ]
then
rm -r $HOME/.local/share/icons/Zafiro-icons
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/Zafiro-icons-Dark" ]
then
rm -r $HOME/.local/share/icons/Zafiro-icons-Dark
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/Zafiro-Icons-Dark" ]
then
rm -r $HOME/.local/share/icons/Zafiro-Icons-Dark
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/Zafiro-Icons-dark" ]
then
rm -r $HOME/.local/share/icons/Zafiro-Icons-dark
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/Zafiro-icons-dark" ]
then
rm -r $HOME/.local/share/icons/Zafiro-icons-dark
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/zafiro-icons-dark" ]
then
rm -r $HOME/.local/share/icons/zafiro-icons-dark
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/zafiro-Icons-dark" ]
then
rm -r $HOME/.local/share/icons/zafiro-Icons-dark
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/zafiro-Icons-Dark" ]
then
rm -r $HOME/.local/share/icons/zafiro-Icons-Dark
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/zafiro-icons-Dark" ]
then
rm -r $HOME/.local/share/icons/zafiro-icons-Dark
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/Zafiro-icons-Light" ]
then
rm -r $HOME/.local/share/icons/Zafiro-icons-Light
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/Zafiro-Icons-Light" ]
then
rm -r $HOME/.local/share/icons/Zafiro-Icons-Light
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/Zafiro-Icons-light" ]
then
rm -r $HOME/.local/share/icons/Zafiro-Icons-light
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/Zafiro-icons-light" ]
then
rm -r $HOME/.local/share/icons/Zafiro-icons-light
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/zafiro-icons-light" ]
then
rm -r $HOME/.local/share/icons/zafiro-icons-light
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/zafiro-Icons-light" ]
then
rm -r $HOME/.local/share/icons/zafiro-Icons-light
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/zafiro-Icons-Light" ]
then
rm -r $HOME/.local/share/icons/zafiro-Icons-Light
else
echo ""
fi
if [ -d "$HOME/.local/share/icons/zafiro-icons-Light" ]
then
rm -r $HOME/.local/share/icons/zafiro-icons-Light
else
echo ""
fi
#Copiando directorios
cp -r -a Dark $HOME/.local/share/icons/Zafiro-Icons-Dark
cp -r -a Light $HOME/.local/share/icons/Zafiro-Icons-Light
cp CREDITS $HOME/.local/share/icons/Zafiro-Icons-Dark
cp CREDITS $HOME/.local/share/icons/Zafiro-Icons-Light
cp README.md $HOME/.local/share/icons/Zafiro-Icons-Light
cp README.md $HOME/.local/share/icons/Zafiro-Icons-Dark
cp LICENSE.md $HOME/.local/share/icons/Zafiro-Icons-Dark
cp LICENSE.md $HOME/.local/share/icons/Zafiro-Icons-Light
cd
rm -r $HOME/.local/share/icons/Zafiro-icons-master
rm $HOME/.local/share/icons/master.zip
rm -r $HOME/.local/share/icons/github.com
else
echo "no fue posible descomprimir archivo"
fi
else
mkdir $HOME/.local/share/icons
cd $HOME/.local/share/icons
wget /~https://github.com/zayronxio/Zafiro-icons/archive/refs/heads/master.zip
if [ -f "$HOME/.local/share/icons/master.zip" ]
then
unzip master.zip
sleep 3s
if [ -d "$HOME/.local/share/icons/Zafiro-icons-master" ]
then
cd $HOME/.local/share/icons/Zafiro-icons-master
#Copiando directorios
cp -r -a Dark $HOME/.local/share/icons/Zafiro-Icons-Dark
cp -r -a Light $HOME/.local/share/icons/Zafiro-Icons-Light
cp CREDITS $HOME/.local/share/icons/Zafiro-Icons-Dark
cp CREDITS $HOME/.local/share/icons/Zafiro-Icons-Light
cp README.md $HOME/.local/share/icons/Zafiro-Icons-Light
cp README.md $HOME/.local/share/icons/Zafiro-Icons-Dark
cp LICENSE.md $HOME/.local/share/icons/Zafiro-Icons-Dark
cp LICENSE.md $HOME/.local/share/icons/Zafiro-Icons-Light
cd
rm -r $HOME/.local/share/icons/Zafiro-icons-master
rm $HOME/.local/share/icons/master.zip
rm -r $HOME/.local/share/icons/Install-Zafiro-Icons.sh
else
echo "no fue posible descomprimir archivo"
fi
else
echo "no fue posible descargar el archivo"
fi
fi