bash syntax fixes [publish] [publish binary]