cleaning up update-client.sh for automated deployment.