Skip to content

Commit b6e12f3

Browse files
committed
sh updated
1 parent 66584ba commit b6e12f3

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

godemon-installer.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/sh
22

33
buildApp() {
4-
unzip 2.7.1-beta.zip
5-
cd ./godemon-2.7.1-beta
4+
unzip 2.7.1.zip
5+
cd ./godemon-2.7.1
66
go build
77
}
88

@@ -12,6 +12,12 @@ prepareDirs() {
1212
mkdir ~/.godemon/bin/
1313
}
1414

15+
removing() {
16+
cd ..
17+
sudo rm -r godemon-2.7.1
18+
sudo rm -r 2.7.1.zip
19+
}
20+
1521

1622
printf "**********_________________***********\n*********/*****************\**********\n********/*******************\*********\n*******/_____________________\********\n*********WELCOME TO GODEMON***********\n*************INSTALLER****************\n\n"
1723

@@ -22,7 +28,7 @@ printf "\nDo you want to do this: \n1. Global \n2. Local \n"
2228
printf "\nAnswer: "
2329
read GL
2430

25-
wget https://github.com/nProgrammer/godemon/archive/2.7.1-beta.zip
31+
wget https://github.com/nProgrammer/godemon/archive/2.7.1.zip
2632

2733
if [ "$OPTION" = "1" ]
2834
then
@@ -32,6 +38,7 @@ then
3238
prepareDirs
3339
sudo mv godemon ~/.godemon/bin/
3440
sudo chmod 777 ~/.godemon/bin/godemon
41+
removing
3542
elif [ "$GL" = "1" ]
3643
then
3744
buildApp
@@ -40,6 +47,7 @@ then
4047
sudo mkdir /usr/local/.godemon/bin/
4148
sudo mv godemon /usr/local/.godemon/bin/
4249
sudo chmod 777 /usr/local/.godemon/bin/godemon
50+
removing
4351
fi
4452
elif [ "$OPTION" = "2" ]
4553
then
@@ -48,11 +56,13 @@ then
4856
buildApp
4957
sudo mv godemon ~/.godemon/bin/
5058
sudo chmod 777 ~/.godemon/bin/godemon
59+
removing
5160
elif [ "$GL" = "1" ]
5261
then
5362
buildApp
5463
sudo mv godemon /usr/local/.godemon/bin/
5564
sudo chmod 777 /usr/local/.godemon/bin/godemon
65+
removing
5666
fi
5767
fi
5868

0 commit comments

Comments
 (0)