File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ usage() {
50
50
--txz Export a jail using simple .txz compressed archive instead.
51
51
-v | --verbose Be more verbose during the ZFS send operation.
52
52
--xz Export a ZFS jail using XZ(.xz) compressed image.
53
- -x | --debug Enable debug mode.
53
+ -x | --debug Enable debug mode.
54
54
55
55
Note: If no export option specified, the jail should be redirected to standard output.
56
56
@@ -179,9 +179,15 @@ else
179
179
enable_debug
180
180
shift
181
181
;;
182
- -* )
183
- error_notify " [ERROR]: Unknown Option: \" ${1} \" "
184
- usage
182
+ -* )
183
+ for _opt in $( echo ${1} | sed ' s/-//g' | fold -w1) ; do
184
+ case ${_opt} in
185
+ a) AUTO=1 ;;
186
+ x) enable_debug ;;
187
+ * ) error_exit " [ERROR]: Unknown Option: \" ${1} \" "
188
+ esac
189
+ done
190
+ shift
185
191
;;
186
192
* )
187
193
break
You can’t perform that action at this time.
0 commit comments