eureka/deploy.sh

10 lines
218 B
Bash
Raw Normal View History

#!/bin/sh
DEST=$(grep "#define DEPLOY_DEST" config.h | awk '{print $3}' | sed -e 's/"//g')
2021-10-26 20:57:55 +00:00
if [ -z "$1" ]; then
rsync -avK --delete ../ ${DEST}
elif [ "$1" = "--resync" ]; then
rsync -avk --delete ${DEST} ../
fi