Skip to content

Commit 311d11f

Browse files
author
Shlomi Noach
committed
fixing freno binary path
1 parent c36b938 commit 311d11f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ function oinstall() {
102102
cd $mydir
103103
gofmt -s -w go/
104104
cp ./resources/etc/init.d/freno $builddir/freno/etc/init.d/freno
105-
cp ./resources/freno.conf.skeleton.json $builddir/freno/etc/freno.conf.json
106105
chmod +x $builddir/freno/etc/init.d/freno
106+
cp ./resources/freno.conf.skeleton.json $builddir/freno/etc/freno.conf.json
107107
}
108108

109109
function package() {
@@ -143,7 +143,7 @@ function build() {
143143
prefix="$4"
144144
ldflags="-X main.AppVersion=${RELEASE_VERSION} -X main.GitCommit=${GIT_COMMIT}"
145145
echo "Building via $(go version)"
146-
gobuild="go build -i ${opt_race} -ldflags \"$ldflags\" -o $builddir/freno${prefix}/freno/freno go/cmd/freno/main.go"
146+
gobuild="go build -i ${opt_race} -ldflags \"$ldflags\" -o $builddir/freno${prefix}/freno go/cmd/freno/main.go"
147147

148148
case $os in
149149
'linux')
@@ -153,7 +153,7 @@ function build() {
153153
echo "GOOS=darwin GOARCH=amd64 $gobuild" | bash
154154
;;
155155
esac
156-
[[ $(find $builddir/freno${prefix}/freno/ -type f -name freno) ]] && echo "freno binary created" || (echo "Failed to generate freno binary" ; exit 1)
156+
[[ $(find $builddir/freno${prefix}/ -type f -name freno) ]] && echo "freno binary created" || (echo "Failed to generate freno binary" ; exit 1)
157157
}
158158

159159
function main() {

0 commit comments

Comments
 (0)