-
Notifications
You must be signed in to change notification settings - Fork 0
/
tools.sh
41 lines (35 loc) · 791 Bytes
/
tools.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
#!/bin/bash
function color(){
blue="\033[0;36m"
red="\033[0;31m"
green="\033[0;32m"
close="\033[m"
case $1 in
blue)
echo -e "$blue $2 $close"
;;
red)
echo -e "$red $2 $close"
;;
green)
echo -e "$green $2 $close"
;;
*)
echo "Input color error!!"
;;
esac
}
function line() {
echo "-----------------------------------------"
}
function log(){
return;
color green "$1"
}
function logo() {
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++"
color blue " MyNameIsCR7SshJumper "
color red "https://github.com/mynameiscr7/ShellSshJumper.git "
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo
}