File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,16 @@ if [[ ! $2 =~ $number_re ]] ; then
2929 printf " Invalid <# of Shards> argument: $2 \n"
3030 exit
3131fi
32+ if [[ $3 -lt 0 ]] || [[ $3 -gt 4 ]]; then
33+ printf " Invalid <Parent Node Index Begin> argument: $3 \n"
34+ exit
35+ fi
3236PARENT_NODE_INDEX_BEGIN=$3
3337printf " PARENT_NODE_INDEX_BEGIN=$PARENT_NODE_INDEX_BEGIN \n"
38+ if [[ $4 -lt 0 ]] || [[ $4 -gt 4 ]]; then
39+ printf " Invalid <Parent Node Index End> argument: $4 \n"
40+ exit
41+ fi
3442PARENT_NODE_INDEX_END=$4
3543printf " PARENT_NODE_INDEX_END=$PARENT_NODE_INDEX_END \n"
3644printf " \n"
Original file line number Diff line number Diff line change @@ -29,8 +29,16 @@ if [[ ! $2 =~ $number_re ]] ; then
2929 printf " Invalid <# of Shards> argument: $2 \n"
3030 exit
3131fi
32+ if [[ $3 -lt 0 ]] || [[ $3 -gt 4 ]]; then
33+ printf " Invalid <Parent Node Index Begin> argument: $3 \n"
34+ exit
35+ fi
3236PARENT_NODE_INDEX_BEGIN=$3
3337printf " PARENT_NODE_INDEX_BEGIN=$PARENT_NODE_INDEX_BEGIN \n"
38+ if [[ $4 -lt 0 ]] || [[ $4 -gt 4 ]]; then
39+ printf " Invalid <Parent Node Index End> argument: $4 \n"
40+ exit
41+ fi
3442PARENT_NODE_INDEX_END=$4
3543printf " PARENT_NODE_INDEX_END=$PARENT_NODE_INDEX_END \n"
3644printf " \n"
You can’t perform that action at this time.
0 commit comments