Skip to content

Commit 2c64fe2

Browse files
committed
fixes cut issue with busybox
1 parent 8f182d3 commit 2c64fe2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/performance/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export ENV_FILE
1212
NETWORK_NAME=dashboards_timenet
1313

1414
# UTILS
15-
get_my_ip := $(shell (hostname --all-ip-addresses || hostname -i) 2>/dev/null | cut --delimiter=" " --fields=1)
15+
# NOTE: keep short arguments for `cut` so it works in both BusyBox (alpine) AND Ubuntu
16+
get_my_ip := $(shell (hostname --all-ip-addresses || hostname -i) 2>/dev/null | cut -d " " -f 1)
1617

1718
# Check that given variables are set and all have non-empty values,
1819
# die with an error otherwise.

0 commit comments

Comments
 (0)