File tree Expand file tree Collapse file tree 1 file changed +20
-27
lines changed Expand file tree Collapse file tree 1 file changed +20
-27
lines changed Original file line number Diff line number Diff line change @@ -10,32 +10,6 @@ for HELPER in ${HELPERS[@]}; do
10
10
source $( pwd) /helper/${HELPER} .sh
11
11
done
12
12
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
-
39
13
function main() {
40
14
41
15
trap ' handleInterruptByUser "Interrupt by User"' 2
@@ -63,4 +37,23 @@ function main() {
63
37
64
38
}
65
39
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
You can’t perform that action at this time.
0 commit comments