projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Firsh header macros
[anna.git]
/
example
/
diameter
/
launcher
/
resources
/
pcap2diameterHex.sh
diff --git
a/example/diameter/launcher/resources/pcap2diameterHex.sh
b/example/diameter/launcher/resources/pcap2diameterHex.sh
index
45dd820
..
fc217cd
100755
(executable)
--- a/
example/diameter/launcher/resources/pcap2diameterHex.sh
+++ b/
example/diameter/launcher/resources/pcap2diameterHex.sh
@@
-31,23
+31,13
@@
_exit () {
echo
# Cleanup
echo
# Cleanup
-
#
rm -rf $tmpdir
+ rm -rf $tmpdir
rc=1
[ -n "$2" ] && rc=$2
exit $rc
}
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 #
#############
# EXECUTION #