|
|
@ -562,6 +562,20 @@ check_mode() { |
|
|
|
# $1 the mode to check for |
|
|
|
# $1 the mode to check for |
|
|
|
debug "check_mode: checking '$1'" |
|
|
|
debug "check_mode: checking '$1'" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# add all available modes |
|
|
|
|
|
|
|
if [[ "${1}" == "all" ]]; then |
|
|
|
|
|
|
|
for m in "${mode_list[@]}"; do |
|
|
|
|
|
|
|
mode=("$(echo ${m} | cut -f2 -d:)") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# do not add archiso |
|
|
|
|
|
|
|
if [[ "${mode}" == "iso" ]]; then |
|
|
|
|
|
|
|
continue |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modes+=("${mode}") |
|
|
|
|
|
|
|
kernel_names+=("$(echo ${m} | cut -f1 -d:)") |
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
else |
|
|
|
for m in "${mode_list[@]}"; do |
|
|
|
for m in "${mode_list[@]}"; do |
|
|
|
debug "check_mode: on '${m}'" |
|
|
|
debug "check_mode: on '${m}'" |
|
|
|
local moden=$(echo ${m} | cut -f2 -d:) |
|
|
|
local moden=$(echo ${m} | cut -f2 -d:) |
|
|
@ -575,6 +589,7 @@ check_mode() { |
|
|
|
error "Unrecognized argument '$1'" |
|
|
|
error "Unrecognized argument '$1'" |
|
|
|
usage |
|
|
|
usage |
|
|
|
exit 155 |
|
|
|
exit 155 |
|
|
|
|
|
|
|
fi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|