Files
zeronsd/cargo-docker.sh
Erik Hollensbe a40ff22159 packaging fixups for progentior usage of rustfmt
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-05-13 20:11:40 -07:00

13 lines
274 B
Bash

#!/bin/sh
export PATH="${HOME}/.cargo/bin:${PATH}"
if [ "${IS_LOCAL}" != 0 ]
then
cargo install --path .
else
cargo install --git https://github.com/zerotier/zeronsd \
$(if [ "${IS_TAG}" != "0" ]; then echo "--tag"; else echo "--branch"; fi) \
"${VERSION}"
fi