diff --git a/README.md b/README.md index c775746e..072edfe9 100644 --- a/README.md +++ b/README.md @@ -372,7 +372,7 @@ Copy file and making it executable is also supported: ```yaml - name: copy file and make it executable copy: - - {"src": "testdata/script.sh", "dst": "/tmp/script.sh", "chmod_x": true} + - {"src": "testdata/script.sh", "dst": "/tmp/script.sh", "chmod+x": true} ``` diff --git a/pkg/config/command.go b/pkg/config/command.go index f1f249bb..d8f48ece 100644 --- a/pkg/config/command.go +++ b/pkg/config/command.go @@ -52,7 +52,7 @@ type CopyInternal struct { Mkdir bool `yaml:"mkdir" toml:"mkdir"` // create destination directory if it does not exist Force bool `yaml:"force" toml:"force"` // force copy even if source and destination are the same Exclude []string `yaml:"exclude" toml:"exclude"` // exclude files matching these patterns - ChmodX bool `yaml:"chmod_x" toml:"chmod_x"` // chmod +x on destination file + ChmodX bool `yaml:"chmod+x" toml:"chmod+x"` // chmod +x on destination file } // SyncInternal defines sync command (recursive copy), implemented internally