specleap-framework 2.0.5 → 2.0.6
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/package.json +1 -1
- package/setup.sh +20 -8
package/package.json
CHANGED
package/setup.sh
CHANGED
|
@@ -4,14 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
set -e
|
|
6
6
|
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
# Detectar si el terminal soporta colores
|
|
8
|
+
if [[ -t 1 ]] && command -v tput &>/dev/null && [[ $(tput colors 2>/dev/null || echo 0) -ge 8 ]]; then
|
|
9
|
+
# Terminal con colores
|
|
10
|
+
RED='\033[0;31m'
|
|
11
|
+
GREEN='\033[0;32m'
|
|
12
|
+
YELLOW='\033[1;33m'
|
|
13
|
+
BLUE='\033[0;34m'
|
|
14
|
+
CYAN='\033[0;36m'
|
|
15
|
+
BOLD='\033[1m'
|
|
16
|
+
NC='\033[0m'
|
|
17
|
+
else
|
|
18
|
+
# Terminal sin colores - usar texto plano
|
|
19
|
+
RED=''
|
|
20
|
+
GREEN=''
|
|
21
|
+
YELLOW=''
|
|
22
|
+
BLUE=''
|
|
23
|
+
CYAN=''
|
|
24
|
+
BOLD=''
|
|
25
|
+
NC=''
|
|
26
|
+
fi
|
|
15
27
|
|
|
16
28
|
# Ancho terminal
|
|
17
29
|
COLS=$(tput cols 2>/dev/null || echo 80)
|