Skip to content

Commit

Permalink
rename options to chmod+x for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Nov 4, 2023
1 parent c6c61a0 commit 7a5c2d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
```


Expand Down
2 changes: 1 addition & 1 deletion pkg/config/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a5c2d8

Please sign in to comment.