mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
style: apply shellcheck autofix
This commit is contained in:
parent
cb249836cb
commit
cf7def0c68
@ -657,7 +657,7 @@ EOS
|
||||
|
||||
if [[ "${UPSTREAM_SHA_HTTP_CODE}" == "404" ]]
|
||||
then
|
||||
TAP="${DIR#${HOMEBREW_LIBRARY}/Taps/}"
|
||||
TAP="${DIR#"${HOMEBREW_LIBRARY}"/Taps/}"
|
||||
echo "${TAP} does not exist! Run \`brew untap ${TAP}\` to remove it." >>"${update_failed_file}"
|
||||
else
|
||||
echo "Fetching ${DIR} failed!" >>"${update_failed_file}"
|
||||
|
@ -105,7 +105,7 @@ __brew_complete_tapped() {
|
||||
for dir in "${taplib}"/*/*
|
||||
do
|
||||
[[ -d "${dir}" ]] || continue
|
||||
dir="${dir#${taplib}/}"
|
||||
dir="${dir#"${taplib}"/}"
|
||||
dir="${dir/homebrew-/}"
|
||||
taps="${taps} ${dir}"
|
||||
done
|
||||
|
1
bin/brew
1
bin/brew
@ -2,6 +2,7 @@
|
||||
|
||||
# Fail fast with concise message when not using bash
|
||||
# Single brackets is needed here for POSIX compatibility
|
||||
# shellcheck disable=SC2292
|
||||
if [ -z "${BASH_VERSION:-}" ]
|
||||
then
|
||||
echo "Error: Bash is required to run brew." >&2
|
||||
|
@ -92,7 +92,7 @@ __brew_complete_tapped() {
|
||||
for dir in "${taplib}"/*/*
|
||||
do
|
||||
[[ -d "${dir}" ]] || continue
|
||||
dir="${dir#${taplib}/}"
|
||||
dir="${dir#"${taplib}"/}"
|
||||
dir="${dir/homebrew-/}"
|
||||
taps="${taps} ${dir}"
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user