X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Fscripts%2Fclone.sh;h=84a94799fccbe1fa1d6c3f79134b4a0c54d68483;hb=491faa0ec6a72d220ad12f031f673d22ce00f86e;hp=747e8b01b3430cbd5254e27e4e93bffcc0704917;hpb=1ac015cbbcd331edc3c14de26290d669d91e4e53;p=anna.git diff --git a/example/diameter/launcher/resources/scripts/clone.sh b/example/diameter/launcher/resources/scripts/clone.sh index 747e8b0..84a9479 100755 --- a/example/diameter/launcher/resources/scripts/clone.sh +++ b/example/diameter/launcher/resources/scripts/clone.sh @@ -181,6 +181,9 @@ then fi N_ITEMS=$((CLONE_SEQ_END - CLONE_SEQ_BEGIN + 1)) +[ "$N_ITEMS" -lt 1 ] && _exit "Initial sequence ($CLONE_SEQ_BEGIN) provided must be under final sequence value ($CLONE_SEQ_END) !!" +[ "$CLONE_SEQ_END" -gt "99999999" ] && echo "Warning: some sequence value in range provided overflows __SEQ8__ and derived variables (__IPV4__ and __IPV4HEX__). Be care about using them ..." + if [ -z "$N_GROUPS" ] then N_GROUPS=$((N_ITEMS/25))