setup-kapelu 3.2.7 → 3.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/install.sh +20 -7
- package/package.json +1 -1
package/install.sh
CHANGED
|
@@ -145,14 +145,27 @@ run_setup(){
|
|
|
145
145
|
|
|
146
146
|
printf "${green}📦 ¿Desea ejecutar setup.sh? (s/n): ${reset}"
|
|
147
147
|
read RESP
|
|
148
|
-
chmod +x setup.sh
|
|
149
148
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
149
|
+
if [ "$RESP" = "s" ]; then
|
|
150
|
+
|
|
151
|
+
FILE="$HOME_DIR/script/setup.sh"
|
|
152
|
+
|
|
153
|
+
if [ ! -f "$FILE" ]; then
|
|
154
|
+
echo "❌ Error: setup.sh no encontrado en $HOME_DIR/script/"
|
|
155
|
+
return 1
|
|
156
|
+
fi
|
|
157
|
+
|
|
158
|
+
if [ ! -x "$FILE" ]; then
|
|
159
|
+
chmod +x "$FILE"
|
|
160
|
+
fi
|
|
161
|
+
|
|
162
|
+
"$FILE"
|
|
163
|
+
|
|
164
|
+
else
|
|
165
|
+
system_update
|
|
166
|
+
system_cleanup
|
|
167
|
+
fi
|
|
168
|
+
|
|
156
169
|
}
|
|
157
170
|
|
|
158
171
|
main(){
|