Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit ed06c4b

Browse files
pyu10055dsmilkov
authored andcommitted
Change the regex check for git origin (#1058)
1 parent 52701e9 commit ed06c4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/publish-npm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if [ "$BRANCH" != "master" ]; then
3434
exit
3535
fi
3636

37-
if ! [[ "$ORIGIN" =~ ^https://github.com/tensorflow/tfjs-core ]]; then
37+
if ! [[ "$ORIGIN" =~ tensorflow/tfjs-core ]]; then
3838
echo "Error: Switch to the main repo (tensorflow/tfjs-core) before publishing."
3939
exit
4040
fi

0 commit comments

Comments
 (0)