update bash script for publish