X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Fpcap2diameterHex.sh;h=fc217cdc751166ac79d2cb88cf5b17f4caa828c3;hb=1b3dba1b88db2a4f50e4e9fd107c55198368a981;hp=45dd820432648149051e9bcddeb96e3643e3536d;hpb=7bf36f6cec41494071f07699184d8230ccd8cb41;p=anna.git diff --git a/example/diameter/launcher/resources/pcap2diameterHex.sh b/example/diameter/launcher/resources/pcap2diameterHex.sh index 45dd820..fc217cd 100755 --- a/example/diameter/launcher/resources/pcap2diameterHex.sh +++ b/example/diameter/launcher/resources/pcap2diameterHex.sh @@ -31,23 +31,13 @@ _exit () { echo # Cleanup - #rm -rf $tmpdir + rm -rf $tmpdir rc=1 [ -n "$2" ] && rc=$2 exit $rc } -# $1: string; $2: substring -get_str_pos() { - local result=-1 - local str=$1 - local substr="${1%%$2*}" - local pos=${#substr} - local size=${#str} - [ $size -ne $pos ] && result=$pos - echo $result -} ############# # EXECUTION #