nazrin/deploy.sh
2022-12-29 22:06:14 -08:00

12 lines
205 B
Bash
Executable file

#!/usr/bin/env bash
RHOST="$1"
if [ -z "$RHOST" ] ; then
echo "usage: $0 remote-host" >&2
exit 1
fi
cargo build --profile $PROFILE && \
scp "$PWD/target/${PROFILE:-debug}/nzr"{,d} "$RHOST:"