Modified publish.sh