Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 629:f7eda6256ae8
ftjail: remove useless "cat" and replace by input redirection
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 24 Sep 2024 18:47:45 +0200 |
| parents | 17209ce80536 |
| children | 87d37db3ac06 |
| files | sbin/ftjail |
| diffstat | 1 files changed, 6 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/sbin/ftjail Tue Sep 24 18:46:15 2024 +0200 +++ b/sbin/ftjail Tue Sep 24 18:47:45 2024 +0200 @@ -1036,15 +1036,12 @@ # datasets. # echo "Recreating missing top-level directories" - cat "${_dir_fn_tldir}" \ - | { - while IFS='' read -r _line ; do - if [ ! -d "${_line}" ]; then - echo "Recreating top-level directory: ${_line}" - mkdir "${_line}" - fi - done - } + while IFS='' read -r _line ; do + if [ ! -d "${_line}" ]; then + echo "Recreating top-level directory: ${_line}" + mkdir "${_line}" + fi + done < "${_dir_fn_tldir}" echo "Unmounting the new root dataset" /sbin/umount "${_directory}" echo "Re-setting some ZFS properties on the new cloned dataset"
