Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 688:3e96fc952c45
fpkg: Allow spaces in jail names for "fpkg etcupdate-status"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 01 Oct 2024 15:03:28 +0200 |
| parents | 5156eaa27ac9 |
| children | 425b1ae264a9 |
| files | sbin/fpkg |
| diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/sbin/fpkg Tue Oct 01 15:02:55 2024 +0200 +++ b/sbin/fpkg Tue Oct 01 15:03:28 2024 +0200 @@ -333,13 +333,13 @@ printf '%sLOCALHOST\n' "${FPKG_SIGN}" /usr/sbin/etcupdate status - _OLDIFS="${IFS}" + _OLDIFS="$IFS" IFS=$'\n' - for _j in $(/usr/sbin/jls name | /usr/bin/sort); do + for _j in $(/usr/sbin/jls name | LC_ALL=C.UTF-8 /usr/bin/sort); do printf '\n%sJAIL: %s\n' "${FPKG_SIGN}" "${_j}" LC_ALL=C.UTF-8 /usr/sbin/jexec -- "${_j}" /usr/sbin/etcupdate status done - IFS="${_OLDIFS}" + IFS="$_OLDIFS" }
