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.
Files changed (2) hide show
  1. package/install.sh +20 -7
  2. 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
- if [ "$RESP" = "s" ]; then
151
- bash "$HOME_DIR/script/setup.sh"
152
- else
153
- system_update
154
- system_cleanup
155
- fi
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(){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "setup-kapelu",
3
- "version": "3.2.7",
3
+ "version": "3.2.8",
4
4
  "description": "Script post-install de Ubuntu",
5
5
  "type": "commonjs",
6
6
  "bin": {