-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathinstall.sh
executable file
·56 lines (44 loc) · 1.18 KB
/
install.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
#!/usr/bin/env bash
function main(){
conkyPath="$HOME/.conky"
victorConky="$HOME/.conky/victorConky"
createDirs
copyFiles
installFonts
}
function createDirs(){
#create conky dir if not exist
mkdir -p "$conkyPath"
#create victorConky dir if not exist and delete it if exist
if [[ -d "$victorConky" ]];then
rm -rf "$victorConky"
echo "victorConky directory is already exists deleting..."
fi
echo "create $victorConky..."
mkdir "$victorConky"
}
function copyFiles(){
filesDir="$PWD/victorConky"
if [[ -d "$filesDir" ]];then
echo "copy files..."
cp "$filesDir"/* "$victorConky"
else
echo "victorConky dir not Found"
echo "visit https://www.github.com/Gictorbit/victorconky and download it"
exit 1
fi
}
function installFonts(){
conkyFonts="$PWD/fonts"
fontDir="$HOME/.fonts"
mkdir -p "$fontDir"
if [[ -d "$conkyFonts" ]];then
echo "install fonts..."
cp "$conkyFonts"/* "$fontDir"
else
echo "fonts directory not Found"
echo "visit https://www.github.com/Gictorbit/victorconky and download it"
exit 1
fi
}
main