Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 5d4a17a

Browse files
authored
Output as base-8 string instead of letters
Previous implementation outputted something like -rw-r--r-- instead of 0644.
1 parent 8b610da commit 5d4a17a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internals/cli/filemode/filemode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (m *FileMode) Set(value string) error {
4747

4848
// String implements the flag.Value interface.
4949
func (m FileMode) String() string {
50-
return m.FileMode().String()
50+
return fmt.Sprintf("%#o", m.FileMode().Perm())
5151
}
5252

5353
// FileMode returns the file mode as an os.FileMode.

0 commit comments

Comments
 (0)