Fix problem pubshing to non-snapshot repos - ONOS-5914

Change-Id: I52c8bfae5c85d2452ef26597e9849bac9a806af9
diff --git a/tools/build/onos-buck-publish b/tools/build/onos-buck-publish
index 879d2b6..a4db536 100755
--- a/tools/build/onos-buck-publish
+++ b/tools/build/onos-buck-publish
@@ -47,7 +47,7 @@
 onos-buck publish --to-maven-central --sign //:top-level-pom
 onos-buck publish --to-maven-central --sign //lib:onos-dependencies-pom
 
-if [ ! grep "maven_url" $ONOS_ROOT/.buckconfig.local | grep -v '#' | grep -q snapshots ]; then
+if ! grep "maven_url" $ONOS_ROOT/.buckconfig.local | grep -v '#' | grep -q snapshots ; then
     # Close the staging area
     onos-close-staging
 fi