Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Acme Downloader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Geant DevOps
Acme Downloader
Commits
161696ac
Unverified
Commit
161696ac
authored
4 years ago
by
Max Adamo
Browse files
Options
Downloads
Patches
Plain Diff
fix build.sh
parent
6b9d8e80
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.sh
+6
-6
6 additions, 6 deletions
build.sh
with
6 additions
and
6 deletions
build.sh
+
6
−
6
View file @
161696ac
...
...
@@ -17,6 +17,11 @@ BUILDTIME=$(date -u '+%Y-%m-%d_%H:%M:%S')
rm
-rf
${
GOPATH
}
/src/github.com/maxadamo/
${
BIN_NAME
}
#go get -ldflags "-s -w -X main.appVersion=${PROG_VERSION} -X main.buildTime=${BUILDTIME}" gitlab.geant.net/devops/${BIN_NAME}
go get
-ldflags
"-s -w -X main.appVersion=
${
PROG_VERSION
}
-X main.buildTime=
${
BUILDTIME
}
"
.
if
[
$?
-gt
0
]
;
then
echo
-e
"
\n
there was an error while compiling the code
\n
"
exit
fi
echo
""
while
true
;
do
read
-p
"Do you wish to run upx against
${
BIN_NAME
}
? (y/n) "
yn
case
$yn
in
...
...
@@ -24,14 +29,9 @@ while true; do
upx
--brute
${
GOPATH
}
/bin/
${
BIN_NAME
}
break
;;
[
Nn]
*
)
exit
;;
[
Nn]
*
)
break
;;
*
)
echo
"Please answer yes or no."
;;
esac
done
if
[
$?
-gt
0
]
;
then
echo
-e
"
\n
there was an error while compiling the code
\n
"
exit
fi
echo
-e
"
\n
the binary was compiled and it is avilable as:
\n
-
${
GOPATH
}
/bin/
${
BIN_NAME
}
\n
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment