mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-04 03:33:41 +01:00
Merge pull request #1147 from BastilleBSD/tschettervictor-patch-2
export: Allow grouping certain options (-ax)
This commit is contained in:
@@ -50,7 +50,7 @@ usage() {
|
|||||||
--txz Export a jail using simple .txz compressed archive instead.
|
--txz Export a jail using simple .txz compressed archive instead.
|
||||||
-v | --verbose Be more verbose during the ZFS send operation.
|
-v | --verbose Be more verbose during the ZFS send operation.
|
||||||
--xz Export a ZFS jail using XZ(.xz) compressed image.
|
--xz Export a ZFS jail using XZ(.xz) compressed image.
|
||||||
-x | --debug Enable debug mode.
|
-x | --debug Enable debug mode.
|
||||||
|
|
||||||
Note: If no export option specified, the jail should be redirected to standard output.
|
Note: If no export option specified, the jail should be redirected to standard output.
|
||||||
|
|
||||||
@@ -179,9 +179,15 @@ else
|
|||||||
enable_debug
|
enable_debug
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-*)
|
-*)
|
||||||
error_notify "[ERROR]: Unknown Option: \"${1}\""
|
for _opt in $(echo ${1} | sed 's/-//g' | fold -w1); do
|
||||||
usage
|
case ${_opt} in
|
||||||
|
a) AUTO=1 ;;
|
||||||
|
x) enable_debug ;;
|
||||||
|
*) error_exit "[ERROR]: Unknown Option: \"${1}\""
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
shift
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user