diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-09-22 11:00:44 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-09-22 11:00:48 -0400 |
| commit | 653af2a62997828f8d59fd572a937b8e449745bb (patch) | |
| tree | 191bb796cb07f93266c2a36615d2680e3c4ad32c | |
| parent | ab43a0536ba619c8b57c9edfbfb4807bcddac1b0 (diff) | |
| download | dotfiles-653af2a62997828f8d59fd572a937b8e449745bb.tar.gz dotfiles-653af2a62997828f8d59fd572a937b8e449745bb.tar.xz | |
Use null delimiters in setperms()
| -rw-r--r-- | mkshrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -305,8 +305,8 @@ syschroot() { setperms() { dir_perms=$(echo $1 | awk -F: '{print $1}') file_perms=$(echo $1 | awk -F: '{print $2}') - find "$2" -type f | xargs chmod "$file_perms" - find "$2" -type d | xargs chmod "$dir_perms" + find "$2" -type f -print0 | xargs -0 chmod "$file_perms" + find "$2" -type d -print0 | xargs -0 chmod "$dir_perms" } timestamp() { |
