Skip to content

Adds error message for missing homebrew #12547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tools/bin/deploy_docusaurus
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,19 @@ pwd

# Yarn check (which is commonly used to check for program existance)
# -s/--silent doesn't exist in cloud's Ubuntu
if ! which brew > /dev/null; then
echo -e "$red_text""homebrew not found HALP!!\n\n""$default_text"
echo -e "$red_text""try this: https://brew.sh\n\n""$default_text"
exit 1
fi

if ! which yarn > /dev/null; then
echo -e "$red_text""yarn not found HALP!!\n\n""$default_text"
echo -e "$red_text""try this: brew install yarn\n\n""$default_text"
exit 1
fi


set -o xtrace

# local check for changes. Fail here early instead of 40 seconds from now
Expand Down Expand Up @@ -114,7 +122,8 @@ echo "docs.airbyte.com" > CNAME

git add CNAME

git commit --message "Adds CNAME to deploy for $revision"
# Skip pre-commit hooks fire_elmo.jpg
PRE_COMMIT_ALLOW_NO_CONFIG=1 git commit --message "Adds CNAME to deploy for $revision"

# non functional. for debugging
git branch
Expand Down