Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 655:5ba31e3748ca
ftjail: quote all option expansions
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 28 Sep 2024 14:51:25 +0200 |
| parents | 7bbb397168b7 |
| children | a8052a57a921 |
| files | sbin/ftjail |
| diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/sbin/ftjail Sat Sep 28 14:09:38 2024 +0200 +++ b/sbin/ftjail Sat Sep 28 14:51:25 2024 +0200 @@ -79,7 +79,7 @@ _opt_dry_run="" while getopts "nu" _opt ; do - case ${_opt} in + case "${_opt}" in n|u) _opt_dry_run="yes" ;; @@ -138,7 +138,7 @@ _opt_symlink="" while getopts "LPnu" _opt ; do - case ${_opt} in + case "${_opt}" in L) _opt_symlink="yes" ;; @@ -243,7 +243,7 @@ _opt_symlink="" while getopts "LP" _opt ; do - case ${_opt} in + case "${_opt}" in L) _opt_symlink="-L" ;; @@ -291,7 +291,7 @@ _opt_preserve_boot="" while getopts "LPb" _opt ; do - case ${_opt} in + case "${_opt}" in L) _opt_symlink="yes" ;; @@ -483,7 +483,7 @@ _opt_symlink="" while getopts "LPnu" _opt ; do - case ${_opt} in + case "${_opt}" in L) _opt_symlink="yes" ;; @@ -669,7 +669,7 @@ _opt_nodata="" while getopts "ADLM:Pu" _opt ; do - case ${_opt} in + case "${_opt}" in A) _opt_canmount="-o canmount=noauto" ;; @@ -880,7 +880,7 @@ _opt_keep="no" _opt_old_origin="" while getopts "ko:" _opt ; do - case ${_opt} in + case "${_opt}" in k) _opt_keep="yes" ;; @@ -1097,7 +1097,7 @@ # Global option handling # while getopts "Vh" _opt ; do - case ${_opt} in + case "${_opt}" in V) printf 'ftjail %s\n' '@@SIMPLEVERSIONSTR@@' exit 0
