setup-kapelu 3.0.3 → 3.2.0

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/index.js CHANGED
@@ -68,11 +68,23 @@ try {
68
68
  console.log("🚀 Ejecutando install.sh\n");
69
69
  execSync(`bash ${__dirname}/install.sh`, { stdio: "inherit" });
70
70
  } catch (err) {
71
- clear
72
- console.log("");
73
- console.error(" \n❌ Error ejecutando Post-Install:", err.message);
74
- console.log("");
75
- console.log("");
71
+ console.clear();
72
+
73
+ console.error("\n❌ Error ejecutando Post-Install\n");
74
+
75
+ if (err.status) {
76
+ console.error("Código de salida:", err.status);
77
+ }
78
+
79
+ if (err.cmd) {
80
+ console.error("Comando:", err.cmd);
81
+ }
82
+
83
+ if (err.stderr) {
84
+ console.error(err.stderr.toString());
85
+ }
86
+
87
+ console.error(err.message);
76
88
 
77
89
  process.exit(1);
78
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "setup-kapelu",
3
- "version": "3.0.3",
3
+ "version": "3.2.0",
4
4
  "description": "Script post-install de Ubuntu",
5
5
  "type": "commonjs",
6
6
  "bin": {
package/script/setup.sh CHANGED
@@ -148,10 +148,12 @@ fi
148
148
 
149
149
  system_update() {
150
150
  clear
151
- echo -e "${COLOR[green]}🔄 Actualizando sistema${COLOR[reset]}"
151
+ echo -e " ${COLOR[green]}🔄 Actualizando sistema${COLOR[reset]}"
152
+ echo -e " ${COLOR[green]}⚠️ Dar autorización Root‼️ ${COLOR[reset]}"
152
153
  sudo apt update -y
153
154
  sudo apt upgrade -y
154
155
  sudo apt full-upgrade -y
156
+
155
157
  }
156
158
 
157
159
  ########################################
@@ -440,8 +442,7 @@ install_snap_tools &
440
442
 
441
443
  wait
442
444
 
443
- #setup_ssh
444
-
445
+ setup_ssh
445
446
  system_cleanup
446
447
 
447
448
  ELAPSED=$(( SECONDS - START ))