File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ opt_backup_user='' # -u
4747# parse options
4848opt=' '
4949OPTIND=' 1'
50- while getopts ' :qb :cd:e:f:g:hjl:s :u:' opt
50+ while getopts ' :b :cd:e:f:g:hjk:l:qs :u:' opt
5151do
5252 case " ${opt} " in
5353 # backup config
138138 fi
139139 ;;
140140
141+ # quiet mode
142+ ' q' )
143+ opt_quiet=' 1'
144+ ;;
145+
141146 # source dirs
142147 ' s' )
143148 opt_source_paths_pvedumps_list=" ${OPTARG} "
160165 fi
161166 ;;
162167
163- # quiet mode
164- ' q' )
165- opt_quiet=' 1'
166- ;;
167-
168168 # show help
169169 ' h' )
170170 filename=" $( basename " ${0} " ) "
820820 break 1
821821 else
822822 message " ${message} '${luks_target} '... not found, continuing."
823- # nothing was found (yet)
824- luks_target=" "
823+ luks_target=" " # nothing was found (yet)
825824 fi
826825
827826 # label of a partition
835834 break 1
836835 else
837836 message " ${message} '${luks_target} '... not found, continuing."
838- # nothing was found (yet)
839- luks_target=" "
837+ luks_target=" " # nothing was found (yet)
840838 fi
841839
842840 # invalid value
854852 message " ${message} '${luks_target} '... found."
855853 else
856854 message " ${message} '${luks_target} '... not found, continuing."
857- # nothing was found (yet)
858- luks_target=" "
855+ luks_target=" " # nothing was found (yet)
859856 fi
860857fi
861858# use the first partition of the first usb storage device if no (useable) target was specified or found
867864 message " ${message} '${luks_target} '... found."
868865 else
869866 message " ${message} '${luks_target} '... not found."
867+ luks_target=" " # nothing was found (yet)
870868 endScript " Could not determine any target partition for decryption (backup storage device available?)." " error"
871869 exit 1 # endScript should exit, this is just a fallback
872870 fi
You can’t perform that action at this time.
0 commit comments