Skip to content

modifies file attributes (ownership & permission) based on a configuration file

Notifications You must be signed in to change notification settings

cjdmax/fix-attrs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fix-attrs Build Status

modifies file attributes (ownership & permission) based on a configuration file

Provide all required arguments:

fix-attrs fix --format yaml file.cfg

It detects format based on file extension:

fix-attrs fix file.yml

Compile compatible versions:

OS=(linux darwin)
for i in "${OS[@]}"; do
    CGO_ENABLED=0 GOOS=$i GOARCH=amd64 \
    go build                           \
      -o fix-attrs-0.4.0-$i-amd64      \
      -a                               \
      -tags netgo                      \
      -ldflags '-w'                    \
      .
done

Please see examples/ in order to understand how does configuration file works. attr follows this pattern: uid:gid:perm where perm is written in octal as if it was typed in a shell.

uid and gid are resolved following this rules: Disambiguating user names and IDs

About

modifies file attributes (ownership & permission) based on a configuration file

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%