-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.sh
30 lines (26 loc) · 1.01 KB
/
run.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
#!/bin/sh -e
# hello-go-deploy-marathon run.sh
echo " "
if [ "$1" = "-debug" ]
then
echo "************************************************************************"
echo "* run.sh -debug (START) ************************************************"
echo "************************************************************************"
# set -x enables a mode of the shell where all executed commands
# are printed to the terminal.
set -x
echo " "
else
echo "************************************************************************"
echo "* run.sh (START) *******************************************************"
echo "************************************************************************"
echo " "
fi
echo "go run main.go"
echo " "
go run main.go
echo " "
echo "************************************************************************"
echo "* run.sh (END) **************************************************"
echo "************************************************************************"
echo " "