Apply Mike's suggestions from code review

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Maxim Belkin 2022-04-25 09:16:36 -05:00
parent 27a2dba340
commit 13735bc780
No known key found for this signature in database
GPG Key ID: AC71560D4C5F2338
2 changed files with 3 additions and 2 deletions

View File

@ -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}..."

View File

@ -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}..."