Skip to content

Commit fbddf62

Browse files
committed
Change structure code installation with Human Readable xD
1 parent 28e85e9 commit fbddf62

File tree

1 file changed

+20
-27
lines changed

1 file changed

+20
-27
lines changed

install.sh

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,6 @@ for HELPER in ${HELPERS[@]}; do
1010
source $(pwd)/helper/${HELPER}.sh
1111
done
1212

13-
14-
function screenSize() {
15-
16-
COLS=$(echo $COLUMNS)
17-
ROWS=$(echo $LINES)
18-
19-
if [[ -n ${COLS} && -n ${ROWS} ]]; then
20-
21-
if (( ${COLS} >= 101 & ${ROWS} >= 39 )); then
22-
23-
${1}
24-
25-
else
26-
27-
stat "ERROR" "Warning" "Please zoom out your Terminal Screen!"
28-
29-
fi
30-
31-
else
32-
33-
stat "ERROR" "Danger" "Please run 'export COLUMNS LINES' first and then run again!"
34-
35-
fi
36-
37-
}
38-
3913
function main() {
4014

4115
trap 'handleInterruptByUser "Interrupt by User"' 2
@@ -63,4 +37,23 @@ function main() {
6337

6438
}
6539

66-
screenSize main
40+
COLS=$(echo $COLUMNS)
41+
ROWS=$(echo $LINES)
42+
43+
if [[ -n ${COLS} && -n ${ROWS} ]]; then
44+
45+
if (( ${COLS} >= 101 & ${ROWS} >= 39 )); then
46+
47+
main
48+
49+
else
50+
51+
stat "ERROR" "Warning" "Please zoom out your Terminal Screen!"
52+
53+
fi
54+
55+
else
56+
57+
stat "ERROR" "Danger" "Please run 'export COLUMNS LINES' first and then run again!"
58+
59+
fi

0 commit comments

Comments
 (0)