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

Commit

Permalink
Change the regex check for git origin (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyu10055 authored and dsmilkov committed May 28, 2018
1 parent 52701e9 commit ed06c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed06c4b

Please sign in to comment.