Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exit on pre-checking selection #1382

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions emba
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ run_modules()
SELECT_MODULES+=("S24")
fi

# manual selection of pre-checking modules not supported. EMBA is doing this for you!
if [[ "${SELECT_MODULES[*]}" =~ [pP][0-9] ]]; then
print_ln "no_log"
print_output "[!] ERROR: Manual pre-checking module selection not supported" "no_log"
print_output "[!] Hint: Remove -m p[0-9]+ parameter" "no_log"
print_ln "no_log"
exit 1
fi

for SELECT_NUM in "${SELECT_MODULES[@]}" ; do
local MOD_FIN=0
if [[ "${SELECT_NUM}" =~ ^["${MODULE_GROUP,,}","${MODULE_GROUP^^}"]{1}[0-9]+ ]]; then
Expand Down
Loading