Skip to content

Commit

Permalink
[MacOS] Added brew curl to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
missingcharacter committed Jun 10, 2024
1 parent 2d4a2ac commit 413681b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion MacOS/bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ -f "$(brew --prefix)"/etc/bash_completion ]; then
fi

# Update PATH
export PATH="${PATH}:${HOME}/src/gopath/bin:${HOME}/bin"
export PATH="/usr/local/opt/curl/bin:${PATH}:${HOME}/src/gopath/bin:${HOME}/bin"

# Source: https://iterm2.com/documentation-shell-integration.html
# shellcheck disable=SC1091
Expand Down
6 changes: 0 additions & 6 deletions bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,6 @@ function check-ssl() {
declare -a OPENSSL_BINS=()
mapfile -t OPENSSL_BINS < <(type -a openssl | awk '{ print $3 }')
OPENSSL_BIN="${OPENSSL_BINS[0]}"
if test -e /usr/local/Cellar/openssl*/*/bin/openssl; then
for i in /usr/local/Cellar/openssl*/*/bin/openssl; do
OPENSSL_BIN="${i}"
break
done
fi
CERT_INFO="$(echo | "${OPENSSL_BIN}" s_client \
-connect "${IP_OR_HOSTNAME}:${PORT}" 2>/dev/null | "${OPENSSL_BIN}" x509 \
-noout -text -certopt 'no_header,no_version,no_serial,no_signame,no_pubkey,no_sigdump,no_aux')"
Expand Down

0 comments on commit 413681b

Please sign in to comment.