-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·81 lines (70 loc) · 2.26 KB
/
install.sh
File metadata and controls
executable file
·81 lines (70 loc) · 2.26 KB
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
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash
SETCOLOR_SUCCESS="echo -en \\033[1;32m"
SETCOLOR_FAILURE="echo -en \\033[1;31m"
SETCOLOR_NORMAL="echo -en \\033[0;39m"
echo -e "\e[31m------------------------ \e[0m"
echo -e "\e[31m Дадаю дадзеныя у файл .gitignore \e[0m"
echo -e "\e[31m------------------------ \e[0m"
echo "
/github-activity
/dl_doika-1
/chat-widget-for-slack " >> .gitignore
if [ $? -eq 0 ]; then
$SETCOLOR_SUCCESS
echo -n "$(tput hpa $(tput cols))$(tput cub 6)[OK]"
$SETCOLOR_NORMAL
echo
else
$SETCOLOR_FAILURE
echo -n "$(tput hpa $(tput cols))$(tput cub 6)[fail]"
$SETCOLOR_NORMAL
echo
fi
echo -e "\e[31m------------------------ \e[0m"
echo -e "\e[31m Кланую модуль дзеля ахваряванняў \e[0m"
echo -e "\e[31m------------------------ \e[0m"
git clone https://github.com/diglabby/dl_doika-1
if [ $? -eq 0 ]; then
$SETCOLOR_SUCCESS
echo -n "$(tput hpa $(tput cols))$(tput cub 6)[OK]"
$SETCOLOR_NORMAL
echo
else
$SETCOLOR_FAILURE
echo -n "$(tput hpa $(tput cols))$(tput cub 6)[fail]"
$SETCOLOR_NORMAL
echo
fi
echo -e "\e[31m------------------------ \e[0m"
echo -e "\e[31m Кланую і усталевываю пакеты модуля чата \e[0m"
echo -e "\e[31m------------------------ \e[0m"
git clone https://github.com/diglabby/chat-widget-for-slack
if [ $? -eq 0 ]; then
$SETCOLOR_SUCCESS
echo -n "$(tput hpa $(tput cols))$(tput cub 6)[OK]"
$SETCOLOR_NORMAL
echo
else
$SETCOLOR_FAILURE
echo -n "$(tput hpa $(tput cols))$(tput cub 6)[fail]"
$SETCOLOR_NORMAL
echo
fi
echo -e "\e[31m------------------------ \e[0m"
echo -e "\e[31m Кланую і усталевываю пакеты модуля github актыунасцяў \e[0m"
echo -e "\e[31m------------------------ \e[0m"
git clone https://github.com/diglabby/github-activity
if [ $? -eq 0 ]; then
$SETCOLOR_SUCCESS
echo -n "$(tput hpa $(tput cols))$(tput cub 6)[OK]"
$SETCOLOR_NORMAL
echo
else
$SETCOLOR_FAILURE
echo -n "$(tput hpa $(tput cols))$(tput cub 6)[fail]"
$SETCOLOR_NORMAL
echo
fi
echo -e "\e[31m------------------------ \e[0m"
echo -e "\e[31m Усе прайшло добра, карыстайцесь ! \e[0m"
echo -e "\e[31m------------------------ \e[0m"