File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -93,36 +93,43 @@ if [ -n "${bastille_export_options}" ]; then
93
93
94
94
info " Default export option(s): '${DEFAULT_EXPORT_OPTS} '"
95
95
96
+ # Don't shift here when default export options are explicitly denoted in the config file, hence TARGET will always be $1.
96
97
for opt in ${DEFAULT_EXPORT_OPTS} ; do
97
98
case " ${opt} " in
99
+ -a|--auto)
100
+ AUTO=" 1"
101
+ ;;
98
102
--gz)
99
103
GZIP_EXPORT=" 1"
100
104
opt_count
101
- shift ;;
105
+ ;;
102
106
--xz)
103
107
XZ_EXPORT=" 1"
104
108
opt_count
105
- shift ;;
109
+ ;;
106
110
--tgz)
107
111
TGZ_EXPORT=" 1"
108
112
opt_count
109
113
zfs_enable_check
110
- shift ;;
114
+ ;;
111
115
--txz)
112
116
TXZ_EXPORT=" 1"
113
117
opt_count
114
118
zfs_enable_check
115
- shift ;;
119
+ ;;
116
120
-s|--safe)
117
121
SAFE_EXPORT=" 1"
118
- shift ;;
122
+ ;;
119
123
-r|--raw)
120
124
RAW_EXPORT=" 1"
121
125
opt_count
122
- shift ;;
126
+ ;;
123
127
-v|--verbose)
124
128
OPT_ZSEND=" -Rv"
125
- shift ;;
129
+ ;;
130
+ -x)
131
+ enable_debug
132
+ ;;
126
133
-* ) error_notify " [ERROR]: Unknown Option: \" ${1} \" "
127
134
usage;;
128
135
esac
179
186
enable_debug
180
187
shift
181
188
;;
182
- -* )
189
+ -* )
183
190
for _opt in $( echo ${1} | sed ' s/-//g' | fold -w1) ; do
184
191
case ${_opt} in
185
192
a) AUTO=1 ;;
You can’t perform that action at this time.
0 commit comments