Skip to content

Commit a04ba12

Browse files
committed
brew style --fix, clarify comment about copying old path
1 parent d0fa2f0 commit a04ba12

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Formula/p/[email protected]

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,9 @@ def post_install
272272

273273
# fix pear config to install outside cellar
274274
pear_path = HOMEBREW_PREFIX/"share/pear@#{version.major_minor}"
275-
# copy over non-versioned pear path if it exists and the versioned path does not
275+
# copy non-versioned pear path so existing installs continue to work
276276
non_versioned_pear_path = HOMEBREW_PREFIX/"share/pear"
277-
if non_versioned_pear_path.exist? && !pear_path.exist?
278-
cp_r non_versioned_pear_path, pear_path
279-
end
277+
cp_r non_versioned_pear_path, pear_path if non_versioned_pear_path.exist? && !pear_path.exist?
280278

281279
cp_r pkgshare/"pear/.", pear_path
282280
{

0 commit comments

Comments
 (0)