From bd65c88e87444067f5b7a87f2c0a3acec22cd19c Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Tue, 5 Oct 2021 21:44:07 -0500 Subject: [PATCH] Simplify deploy script --- deploy | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deploy b/deploy index e072302..8efb8b3 100755 --- a/deploy +++ b/deploy @@ -3,11 +3,9 @@ # To auto-deploy this on git push, add a symlink at .git/hooks/pre-push that points to this script # Example: ln -s ../../deploy .git/hooks/pre-push -# Get the dir of the running script -SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" - # Pull variables in from deploy_id -source "$SCRIPT_DIR/deploy_id" +#source "$SCRIPT_DIR/deploy_id" +source "./deploy_id" # Generate and push the output to the server hugo && rsync -avz --delete public/ ${USER}@${HOST}:${DIR}