-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharnim.sh
executable file
·70 lines (60 loc) · 1.44 KB
/
arnim.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/sh
# Author: Sandro Rüfenacht
# Date: 07.10.2021
myrows=$(tput cols)
maxRuns=5
zolaOne() {
if [ "$myrows" -lt 200 ]
then
cat /bin/arnim-files/frames/arnim-zola-ansi-100_0.txt
elif [ "$myrows" -ge 200 ] && [ "$myrows" -lt 300 ]
then
cat /bin/arnim-files/frames/arnim-zola-ansi-200_0.txt
elif [ "$myrows" -ge 300 ]
then
cat /bin/arnim-files/frames/arnim-zola-ansi-300_0.txt
fi
}
zolaTwo() {
if [ "$myrows" -lt 200 ]
then
cat /bin/arnim-files/frames/arnim-zola-ansi-100_1.txt
elif [ "$myrows" -ge 200 ] && [ "$myrows" -lt 300 ]
then
cat /bin/arnim-files/frames/arnim-zola-ansi-200_1.txt
elif [ "$myrows" -ge 300 ]
then
cat /bin/arnim-files/frames/arnim-zola-ansi-300_1.txt
fi
}
zolaThree() {
if [ "$myrows" -lt 200 ]
then
cat /bin/arnim-files/frames/arnim-zola-ansi-100_2.txt
elif [ "$myrows" -ge 200 ] && [ "$myrows" -lt 300 ]
then
cat /bin/arnim-files/frames/arnim-zola-ansi-200_2.txt
elif [ "$myrows" -ge 300 ]
then
cat /bin/arnim-files/frames/arnim-zola-ansi-300_2.txt
fi
}
ProjectInsight() {
counter="0"
clear
while [ "$counter" -lt "$maxRuns" ]
do
zolaOne
tput cup 0 0
sleep 0.5
zolaTwo
tput cup 0 0
sleep 0.5
zolaThree
tput cup 0 0
sleep 0.5
counter=$(($counter+1))
done
clear
}
ProjectInsight