github.com/loafoe/cli@v7.1.0+incompatible/actor/sharedaction/fix_mode_windows.go (about)

     1  // +build windows
     2  
     3  package sharedaction
     4  
     5  import "os"
     6  
     7  // fixMode forces all files on windows to be executable because by default
     8  // everything on windows is read/write only. Even executable files.
     9  func fixMode(mode os.FileMode) os.FileMode {
    10  	return mode | 0700
    11  }