comparison sbin/ftjail @ 277:0da26750b6fb

FIX: Explicitely return 0 in the non-error case becsue getopts sometime determines the result value instead
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 17 Sep 2022 18:57:28 +0200
parents 570363928b13
children a6c9eb25ae81
comparison
equal deleted inserted replaced
276:3c24b07240f2 277:0da26750b6fb
103 local _opt 103 local _opt
104 104
105 while getopts ":" _opt ; do 105 while getopts ":" _opt ; do
106 [ "${_opt}" = '?' ] && { echo "ERROR: no option allowed" 1>&2; exit 2; } 106 [ "${_opt}" = '?' ] && { echo "ERROR: no option allowed" 1>&2; exit 2; }
107 done 107 done
108 return 0
108 } 109 }
109 110
110 111
111 _get_dataset_for_mountpoint() { 112 _get_dataset_for_mountpoint() {
112 : 'Use `mount -t zfs -p` to determine the ZFS dataset for a given mountpoint. 113 : 'Use `mount -t zfs -p` to determine the ZFS dataset for a given mountpoint.