From a8b9ec07f506715f94042e193b13d26a4c8d2ad5 Mon Sep 17 00:00:00 2001 From: Ping Yu <4018+pyu10055@users.noreply.github.com> Date: Fri, 25 May 2018 11:34:14 -0700 Subject: [PATCH] change the regex check for git origin --- scripts/publish-npm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/publish-npm.sh b/scripts/publish-npm.sh index c819ab3845..59dc0e141a 100755 --- a/scripts/publish-npm.sh +++ b/scripts/publish-npm.sh @@ -34,7 +34,7 @@ if [ "$BRANCH" != "master" ]; then exit fi -if ! [[ "$ORIGIN" =~ ^https://github.com/tensorflow/tfjs-core ]]; then +if ! [[ "$ORIGIN" =~ tensorflow/tfjs-core ]]; then echo "Error: Switch to the main repo (tensorflow/tfjs-core) before publishing." exit fi