Skip to content

Commit 34a534f

Browse files
committed
CI: Set DELETE_PREFIX in build.sh. [skip ci]
When the PREFIX variable is set before build.sh runs, this means it points to a directory that build.sh needs neither to create nor to remove, as that's a responsibility of whoever runs build.sh (which is usually build_matrix.sh). When the variable is not set before build.sh runs, it means build.sh needs to create a temporary directory and to remove it afterwards. This convention works in libpcap and tcpslice, but in tcpdump the script does not delete the temporary directory because I did not port the logic correctly in commit 75e92be. Get this right.
1 parent 7cba930 commit 34a534f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
if [ -z "$PREFIX" ]; then
2222
PREFIX=`mktempdir tcpdump_build`
2323
echo "PREFIX set to '$PREFIX'"
24+
DELETE_PREFIX=yes
2425
fi
2526
TCPDUMP_BIN="$PREFIX/bin/tcpdump"
2627
# For TESTrun

0 commit comments

Comments
 (0)