diff options
Diffstat (limited to 'web/update-remote.sh')
| -rwxr-xr-x | web/update-remote.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/web/update-remote.sh b/web/update-remote.sh new file mode 100755 index 0000000..a861b60 --- /dev/null +++ b/web/update-remote.sh @@ -0,0 +1,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 |
