#!/bin/sh REPLY=0 read -p "are you sure you want to update the remote website? (y/n) " REPLY if [[ "$REPLY" == "y" ]]; then for i in $(ls -1 ./dist/); do echo "copying $i" scp -r ./dist/$i root@networkheaven.net:/var/www/html/ done echo "clearing render cache..." ssh root@networkheaven.net -p22 "rm /home/web/render/cache/*" echo "done" fi