summaryrefslogtreecommitdiff
path: root/web/update-remote.sh
blob: a861b60792c26ba0b031fa63feb685b584eb90d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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
fi