nazrin/deploy.sh

12 lines
205 B
Bash
Raw Permalink Normal View History

2022-12-30 06:06:14 +00:00
#!/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:"