Commit 7af3023 1 parent 38e9eed commit 7af3023 Copy full SHA for 7af3023
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ clean: clean-release-dir clean-debian clean-rpm
56
56
57
57
.PHONY : binary
58
58
binary : goversion
59
- $(GOBUILD ) $(LD_OPTS ) $( BUILD_VENDOR_FLAGS ) -o $(BINARY_NAME )
59
+ $(GOBUILD ) $(LD_OPTS ) -o $(BINARY_NAME )
60
60
61
61
.PHONY : build
62
62
build : clean binary
@@ -85,7 +85,7 @@ func-tests: build
85
85
RELDIR = $(BINARY_NAME ) -$(BUILD_VERSION )
86
86
87
87
.PHONY : vendor
88
- vendor :
88
+ vendor : vendor-remove
89
89
$(GOCMD ) mod vendor
90
90
tar czf vendor.tgz vendor
91
91
tar --create --auto-compress --file=$(RELDIR ) -vendor.tar.xz vendor
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ set_local_port() {
162
162
local port
163
163
command -v cscli > /dev/null || return 0
164
164
# the following will fail with a non-LAPI local crowdsec, leaving empty port
165
- port=$( cscli config show --key " Config.API.Server.ListenURI" 2> /dev/null | cut -d " :" -f2 || true)
165
+ port=$( cscli config show -oraw - -key " Config.API.Server.ListenURI" 2> /dev/null | cut -d " :" -f2 || true)
166
166
if [ " $port " != " " ]; then
167
167
sed -i " s/localhost:8080/127.0.0.1:$port /g" " $CONFIG "
168
168
sed -i " s/127.0.0.1:8080/127.0.0.1:$port /g" " $CONFIG "
@@ -183,7 +183,7 @@ set_local_lapi_url() {
183
183
fi
184
184
command -v cscli > /dev/null || return 0
185
185
186
- port=$( cscli config show --key " Config.API.Server.ListenURI" 2> /dev/null | cut -d " :" -f2 || true)
186
+ port=$( cscli config show -oraw - -key " Config.API.Server.ListenURI" 2> /dev/null | cut -d " :" -f2 || true)
187
187
if [ " $port " = " " ]; then
188
188
port=8080
189
189
fi
You can’t perform that action at this time.
0 commit comments