diff options
| author | Markus Reiter | 2016-10-14 20:01:35 +0200 | 
|---|---|---|
| committer | Markus Reiter | 2016-10-23 14:13:16 +0200 | 
| commit | 40b7e36746f679c41f97e627f2af0e898963925b (patch) | |
| tree | 8384b8275c7d3b72923cd7c03c584059ad26d670 /Library/Homebrew/cask/lib/hbc/pkg.rb | |
| parent | 13e3272e37d18f0ad3a6273519958bcada30dbbb (diff) | |
| download | brew-40b7e36746f679c41f97e627f2af0e898963925b.tar.bz2 | |
Use `0`-only prefix for octal numbers.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/pkg.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/pkg.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/pkg.rb b/Library/Homebrew/cask/lib/hbc/pkg.rb index 7f187c9de..7d4a9251a 100644 --- a/Library/Homebrew/cask/lib/hbc/pkg.rb +++ b/Library/Homebrew/cask/lib/hbc/pkg.rb @@ -76,7 +76,7 @@ module Hbc      end      def _with_full_permissions(path) -      original_mode = (path.stat.mode % 0o1000).to_s(8) +      original_mode = (path.stat.mode % 01000).to_s(8)        # TODO: similarly read and restore macOS flags (cf man chflags)        @command.run!("/bin/chmod", args: ["--", "777", path], sudo: true)        yield  | 
