if [ "${next_num}" -lt ${max_device} -a "${next_num}" -le "${num_devices}" ]; then
out_str=$(echo ${out_str} | sed "s/,${cur_num},/,${next_num},/;s/,${cur_num}\$/,${next_num}/")
-
+
else
pos_changed=1
_oclHashcat_contains ()
{
local haystack=${1}
- local needle="${2}"
+ local needle="${2}"
if echo "${haystack}" | grep -q " ${needle} " 2> /dev/null; then
return 0
# check if first option out of (hash.txt and dictionary|mask|directory)
# is first option iff: here
- # is second option iff: COMP_CWORD > 2 and no switch before (-*) if no option afterwards (for mask -a 3, -a 6, -a 7 - but possible for dicts!)
+ # is second option iff: COMP_CWORD > 2 and no switch before (-*) if no option afterwards (for mask -a 3, -a 6, -a 7 - but possible for dicts!)
local h=1
local no_opts=0
done
- case "${no_opts}" in
+ case "${no_opts}" in
0)
return 0