fix shell syntax for travis publish checking