Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff sbin/fpkg @ 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 | bda643a6310e |
| children | b9194bec5504 |
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" }
