Skip to content
Snippets Groups Projects
Verified Commit b1b05f83 authored by Renato Alves's avatar Renato Alves :seedling:
Browse files

BUG 0 is an invalid number of job repetitions

parent fcff6ecd
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ prepare_jobs() {
while read -r line; do
if [[ $line = \@* ]]; then
# Lines starting with @n are multiplied n times
pattern='^@([0-9]+) *(.*)$'
pattern='^@([1-9][0-9]*) *(.*)$'
[[ $line =~ $pattern ]] || invalid_pattern "$line"
num=${BASH_REMATCH[1]}
cmd=${BASH_REMATCH[2]}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment