Skip to content

Commit

Permalink
Merge pull request #924 from gromgit/residual-fix
Browse files Browse the repository at this point in the history
uninstall.sh: don't check /usr/local for residual files
  • Loading branch information
MikeMcQuaid authored Dec 30, 2024
2 parents a7705fd + 91455e9 commit e4fb3cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,12 @@ then
fi
fi

dir_children "${HOMEBREW_REPOSITORY}" "${HOMEBREW_PREFIX}" |
residual_dirs=("${HOMEBREW_REPOSITORY}")
if [[ "${HOMEBREW_PREFIX}" != "/usr/local" ]]
then
residual_dirs+=("${HOMEBREW_PREFIX}")
fi
dir_children "${residual_dirs[@]}" |
sort -u >"${tmpdir}/residual_files"

if [[ -s "${tmpdir}/residual_files" && -z "${opt_quiet}" ]]
Expand Down

0 comments on commit e4fb3cd

Please sign in to comment.