forked from wafarifki/Hacktoberfest_2021
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjekyll-auto-tools.sh
60 lines (54 loc) · 1.06 KB
/
jekyll-auto-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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
#rizkytegar npm auto tools
clear
echo " Welcome To Jekyll Auto Tools"
echo "________________________________________________________"
echo ""
echo " AUTHOR"
echo ""
echo "Name : Rizky Tegar"
echo "Github : https://www.github.com/rizkytegar"
echo "________________________________________________________"
echo ""
echo "Menu"
echo ""
echo "1. Gem Install Bundler"
echo "2. Bundle Install"
echo "3. Info"
echo "4. Jekyll Serve"
echo "5. Jekyll Build"
echo ""
echo -n "Enter Request : "
read VAR
# state
if [[ $VAR -eq 1 ]]
then
echo "Gem Install Bundler...."
gem install bundler
# state
elif [[ $VAR -eq 2 ]]
then
echo "bundle install...."
bundle install
# state
elif [[ $VAR -eq 3 ]]
then
echo "waiting info...."
bundle --version
jekyll --version
echo "gem : "
gem --version
# state
elif [[ $VAR -eq 4 ]]
then
echo "Jekyll Serve...."
bundle exec jekyll serve
# state
elif [[ $VAR -eq 5 ]]
then
echo "Building the Your site..."
bundle exec jekyll build
# state
else
echo "Command Not Found"
fi