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

Commit 589a0dd

Browse files
authored
Merge pull request #344 from secrethub/feature/go1.15-compat
2 parents b964bc5 + ca4a54f commit 589a0dd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internals/cli/filemode/filemode.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
package filemode
33

44
import (
5+
"fmt"
56
"os"
67
"strconv"
78

@@ -47,7 +48,7 @@ func (m *FileMode) Set(value string) error {
4748

4849
// String implements the flag.Value interface.
4950
func (m FileMode) String() string {
50-
return string(m)
51+
return fmt.Sprintf("%#o", m.FileMode().Perm())
5152
}
5253

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

0 commit comments

Comments
 (0)