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