brew style --fix
This commit is contained in:
parent
9a711cc8dc
commit
ffb15ffcf5
@ -216,11 +216,11 @@ module Cask
|
|||||||
# including both file ownership and whether system permissions are granted.
|
# including both file ownership and whether system permissions are granted.
|
||||||
# Here we just want to check whether sudo would be needed.
|
# Here we just want to check whether sudo would be needed.
|
||||||
looks_writable_without_sudo = if app.owned?
|
looks_writable_without_sudo = if app.owned?
|
||||||
(app.lstat.mode & 0200) != 0
|
app.lstat.mode.anybits?(0200)
|
||||||
elsif app.grpowned?
|
elsif app.grpowned?
|
||||||
(app.lstat.mode & 0020) != 0
|
app.lstat.mode.anybits?(0020)
|
||||||
else
|
else
|
||||||
(app.lstat.mode & 0002) != 0
|
app.lstat.mode.anybits?(0002)
|
||||||
end
|
end
|
||||||
|
|
||||||
if looks_writable_without_sudo
|
if looks_writable_without_sudo
|
||||||
|
|||||||
@ -272,7 +272,7 @@ module PyPI
|
|||||||
else
|
else
|
||||||
stable = T.must(formula.stable)
|
stable = T.must(formula.stable)
|
||||||
url = if stable.specs[:tag].present?
|
url = if stable.specs[:tag].present?
|
||||||
url = "git+#{stable.url}@#{stable.specs[:tag]}"
|
"git+#{stable.url}@#{stable.specs[:tag]}"
|
||||||
else
|
else
|
||||||
stable.url
|
stable.url
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user