From c23420c0590192eb25ad5344bf1d9485f789e257 Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Fri, 22 Jan 2016 03:39:26 +0100 Subject: [PATCH] remove plus1 variants --- example/diameter/launcher/resources/scripts/clone.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/diameter/launcher/resources/scripts/clone.sh b/example/diameter/launcher/resources/scripts/clone.sh index f24f785..c84423d 100755 --- a/example/diameter/launcher/resources/scripts/clone.sh +++ b/example/diameter/launcher/resources/scripts/clone.sh @@ -99,14 +99,14 @@ clone() { ################################ EDIT THIS SECTION IF YOU NEED NEW SPECIAL VARIABLES ################################ testid=$sequence seq8=$(printf "%08d" $testid) - seq8_p1=$((seq8+1)) + #seq8_p1=$((seq8+1)) ipv4hex=$seq8 - ipv4hex_p1=$seq8_p1 + #ipv4hex_p1=$seq8_p1 #ipv4=$(for i in $(echo $seq8 | sed 's/\(..\)/0x\1 /g'); do printf "%d." $i; done | sed 's/\.$/\n/') # Numbers beginning with "0" are treated as octal (i.e. base-8): we would have 'invalid octal number with 08 and 09' # Solution: convert to base-10 in this way: $((10#$i)) ipv4=$(for i in $(echo $seq8 | sed 's/\(..\)/ \1 /g'); do printf "%d." $((10#$i)); done | sed 's/\.$/\n/') - ipv4_p1=$(for i in $(echo $seq8_p1 | sed 's/\(..\)/ \1 /g'); do printf "%d." $((10#$i)); done | sed 's/\.$/\n/') + #ipv4_p1=$(for i in $(echo $seq8_p1 | sed 's/\(..\)/ \1 /g'); do printf "%d." $((10#$i)); done | sed 's/\.$/\n/') local target=$wkdir/values.${1} echo "__TESTID__=$testid" > $target -- 2.20.1