Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/ftjail @ 278:a6c9eb25ae81
Convert a function to have comment-form docs
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 17 Sep 2022 18:57:52 +0200 |
| parents | 0da26750b6fb |
| children | d40e6e40c315 |
comparison
equal
deleted
inserted
replaced
| 277:0da26750b6fb | 278:a6c9eb25ae81 |
|---|---|
| 94 | 94 |
| 95 # Reset to standard umask | 95 # Reset to standard umask |
| 96 umask 0022 | 96 umask 0022 |
| 97 | 97 |
| 98 | 98 |
| 99 # | 99 #: |
| 100 # Ensure that no options are given | 100 #: Ensure that no command line options are given |
| 101 # | 101 #: |
| 102 #: Args: | |
| 103 #: $@: | |
| 104 #: | |
| 105 #: Exit: | |
| 106 #: 2: If formally `getopts` finds options in "$@" | |
| 107 #: | |
| 108 #: Return: | |
| 109 #: - 0 | |
| 110 #: | |
| 102 _ensure_no_options() { | 111 _ensure_no_options() { |
| 103 local _opt | 112 local _opt |
| 104 | 113 |
| 105 while getopts ":" _opt ; do | 114 while getopts ":" _opt ; do |
| 106 [ "${_opt}" = '?' ] && { echo "ERROR: no option allowed" 1>&2; exit 2; } | 115 [ "${_opt}" = '?' ] && { echo "ERROR: no option allowed" 1>&2; exit 2; } |
