Skip to content

Commit

Permalink
No need to use the null character as separator. Also, the read's `-…
Browse files Browse the repository at this point in the history
…d` option is not compatible with all shells.
  • Loading branch information
jlesage committed Dec 1, 2022
1 parent 1f0ad61 commit 9c35517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/take-ownership
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fi

# Special care is done on the main directory and its children, because these
# could be mapped to a network share.
find "$DIR" -maxdepth 1 -type d -print0 | while read -d $'\0' D
find "$DIR" -maxdepth 1 -type d | while read D
do
if ! chown $USER_ID:$GROUP_ID "$D" 2>/dev/null
then
Expand Down

0 comments on commit 9c35517

Please sign in to comment.