mirror of https://github.com/linkerd/linkerd2.git
22 lines
355 B
Bash
Executable File
22 lines
355 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
system=$(uname -s)
|
|
|
|
if [ "$system" = "Darwin" ]; then
|
|
bin=target/cli/darwin/conduit
|
|
elif [ "$system" = "Linux" ]; then
|
|
bin=target/cli/linux/conduit
|
|
else
|
|
echo "unknown system: $system" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# build conduit executable if it does not exist
|
|
if [ ! -f $bin ]; then
|
|
bin/docker-build-cli-bin >/dev/null
|
|
fi
|
|
|
|
exec $bin "$@"
|