Skip to content

Commit

Permalink
Merge pull request #1382 from m-1-k-3/manual_pre_checking_not_supported
Browse files Browse the repository at this point in the history
exit on pre-checking selection
  • Loading branch information
m-1-k-3 authored Nov 19, 2024
2 parents 8e98261 + 304dc23 commit 94258b7
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit 94258b7

Please sign in to comment.