-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShellScript.sh
More file actions
34 lines (28 loc) · 985 Bytes
/
ShellScript.sh
File metadata and controls
34 lines (28 loc) · 985 Bytes
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
#!/bin/bash
alert="\033[1;36m"
success="\033[1;32m"
warning="\033[1;33m"
error="\033[1;31m"
nocolour="\033[00m"
if [[ -d /home/akhil/Downloads/Web ]];then
echo -e $alert Directory exists $nocolour
else
mkdir -p /home/akhil/Downloads/Web
echo -e $success Directory created $nocolour
fi
if [[ -f /home/akhil/Downloads/Web/bootstrap/bootstrap-4.0.0-dist.zip ]];then
echo -e $warning File already exist $nocolour
else
wget https://github.com/twbs/bootstrap/releases/download/v4.0.0/bootstrap-4.0.0-dist.zip -o /home/akhil/Downloads/Web/bootstrap/bootstrap-4.0.0-dist.zip
echo -e $success File Downloaded successfully $nocolour
fi
if [[ /home/akhil/Downloads/Web/bootstrap ]];then
echo -e $warning Bootstrap Directory already exist $nocolour
else
mkdir home/akhil/Downloads/Web/bootstrap
fi
if [[ -f /home/akhil/Downloads/Web/bootstrap/* ]]; then
echo -e $warning File already extracted $nocolour
else
unzip -d /home/akhil/Downloads/Web/bootstrap bootstrap-4.0.0-dist.zip
fi