A simple bash script to download latest wordpress version and update the needed client wordpress folders with it. Idea is to execute the shell script along with the name of the client destination folder so that the wordpress files could be copied over the destination folder.

Name of the file: wordpresscopy.sh (chmod 755 wordpresscopy.sh)
#! /bin/bash
echo $1
sudo cp -RTf /home/wordpress/. /site/$1/htdocs/
ls -al /site/$1/htdocs

To execute the script,
$ ./wordpresscopy.sh mywordpress