Skip to content

Commit

Permalink
Improve the error message for publish script for where it's run from
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzkocer committed Mar 9, 2021
1 parent 291441e commit e58d4d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cd $DIR
PARENT_GIT_REPO_PATH=$(git rev-parse --show-superproject-working-tree)
if [[ -z $PARENT_GIT_REPO_PATH ||
$(git -C $PARENT_GIT_REPO_PATH config --get remote.origin.url) != *"/gutenberg-mobile.git" ]]; then
echo "This script needs to be run from the 'gutenberg-mobile' submodule."
echo "This script can only be used if the 'gutenberg' project is a submodule of the 'gutenberg-mobile' project"
exit 1
fi

Expand Down

0 comments on commit e58d4d2

Please sign in to comment.