Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
e5f51457
Commit
e5f51457
authored
9 years ago
by
Xu Cheng
Browse files
Options
Downloads
Patches
Plain Diff
caveats: use Formula#full_name
parent
d2cd7ffd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/caveats.rb
+6
-6
6 additions, 6 deletions
Library/Homebrew/caveats.rb
with
6 additions
and
6 deletions
Library/Homebrew/caveats.rb
+
6
−
6
View file @
e5f51457
...
...
@@ -124,16 +124,16 @@ class Caveats
# https://github.com/Homebrew/homebrew/issues/33815
if
!
plist_path
.
file?
||
!
plist_path
.
symlink?
if
f
.
plist_startup
s
<<
"To have launchd start
#{
f
.
name
}
at startup:"
s
<<
"To have launchd start
#{
f
.
full_
name
}
at startup:"
s
<<
" sudo mkdir -p
#{
destination
}
"
unless
destination_path
.
directory?
s
<<
" sudo cp -fv
#{
f
.
opt_prefix
}
/*.plist
#{
destination
}
"
s
<<
" sudo chown root
#{
plist_link
}
"
else
s
<<
"To have launchd start
#{
f
.
name
}
at login:"
s
<<
"To have launchd start
#{
f
.
full_
name
}
at login:"
s
<<
" mkdir -p
#{
destination
}
"
unless
destination_path
.
directory?
s
<<
" ln -sfv
#{
f
.
opt_prefix
}
/*.plist
#{
destination
}
"
end
s
<<
"Then to load
#{
f
.
name
}
now:"
s
<<
"Then to load
#{
f
.
full_
name
}
now:"
if
f
.
plist_startup
s
<<
" sudo launchctl load
#{
plist_link
}
"
else
...
...
@@ -142,17 +142,17 @@ class Caveats
# For startup plists, we cannot tell whether it's running on launchd,
# as it requires for `sudo launchctl list` to get real result.
elsif
f
.
plist_startup
s
<<
"To reload
#{
f
.
name
}
after an upgrade:"
s
<<
"To reload
#{
f
.
full_
name
}
after an upgrade:"
s
<<
" sudo launchctl unload
#{
plist_link
}
"
s
<<
" sudo cp -fv
#{
f
.
opt_prefix
}
/*.plist
#{
destination
}
"
s
<<
" sudo chown root
#{
plist_link
}
"
s
<<
" sudo launchctl load
#{
plist_link
}
"
elsif
Kernel
.
system
"/bin/launchctl list
#{
plist_domain
}
&>/dev/null"
s
<<
"To reload
#{
f
.
name
}
after an upgrade:"
s
<<
"To reload
#{
f
.
full_
name
}
after an upgrade:"
s
<<
" launchctl unload
#{
plist_link
}
"
s
<<
" launchctl load
#{
plist_link
}
"
else
s
<<
"To load
#{
f
.
name
}
:"
s
<<
"To load
#{
f
.
full_
name
}
:"
s
<<
" launchctl load
#{
plist_link
}
"
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment