Apply Mike's suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
27a2dba340
commit
13735bc780
@ -53,7 +53,7 @@ homebrew-update-reset() {
|
||||
[[ -d "${DIR}/.git" ]] || continue
|
||||
if ! git -C "${DIR}" config --local --get remote.origin.url &>/dev/null
|
||||
then
|
||||
opoo "No remote 'origin' in: ${DIR}"
|
||||
opoo "No remote 'origin' in ${DIR}, skipping update and reset!"
|
||||
continue
|
||||
fi
|
||||
ohai "Fetching ${DIR}..."
|
||||
|
||||
@ -557,9 +557,10 @@ EOS
|
||||
|
||||
if ! git config --local --get remote.origin.url &>/dev/null
|
||||
then
|
||||
opoo "No remote 'origin' in: ${DIR}"
|
||||
opoo "No remote 'origin' in ${DIR}, skipping update!"
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ -n "${HOMEBREW_VERBOSE}" ]]
|
||||
then
|
||||
echo "Checking if we need to fetch ${DIR}..."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user