eureka/deploy.sh

11 lines
357 B
Bash
Raw Normal View History

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