Modified publish script