Show permission changes in debug mode
This commit is contained in:
parent
cf82e19090
commit
12d2900231
@ -52,13 +52,12 @@ class Cleaner
|
|||||||
else
|
else
|
||||||
0444
|
0444
|
||||||
end
|
end
|
||||||
# Uncomment this block to show permission changes using brew install -v
|
if ARGV.debug?
|
||||||
# if ARGV.verbose?
|
old_perms = path.stat.mode
|
||||||
# old_perms = path.stat.mode
|
if perms != old_perms
|
||||||
# if perms != old_perms
|
puts "Fixing #{path} permissions from #{old_perms.to_s(8)} to #{perms.to_s(8)}"
|
||||||
# puts "Fixing #{path} permissions from #{old_perms.to_s(8)} to #{perms.to_s(8)}"
|
end
|
||||||
# end
|
end
|
||||||
# end
|
|
||||||
path.chmod perms
|
path.chmod perms
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user