Added version to tcpdump binaries

This commit is contained in:
takeshix 2021-04-19 14:51:33 +02:00
parent eef54d6c31
commit 959c42b354

View file

@ -36,7 +36,7 @@ main() {
local version local version
version=$(get_version "${BUILD_DIRECTORY}/tcpdump/tcpdump --version 2>&1 | head -n1 | awk '{print \$3}'") version=$(get_version "${BUILD_DIRECTORY}/tcpdump/tcpdump --version 2>&1 | head -n1 | awk '{print \$3}'")
version_number=$(echo "$version" | cut -d"-" -f2) version_number=$(echo "$version" | cut -d"-" -f2)
cp "${BUILD_DIRECTORY}/tcpdump/tcpdump" "${OUTPUT_DIRECTORY}/tcpdump" cp "${BUILD_DIRECTORY}/tcpdump/tcpdump" "${OUTPUT_DIRECTORY}/tcpdump${version}"
echo "[+] Finished building tcpdump ${CURRENT_ARCH}" echo "[+] Finished building tcpdump ${CURRENT_ARCH}"
echo ::set-output name=PACKAGED_NAME::"tcpdump${version}" echo ::set-output name=PACKAGED_NAME::"tcpdump${version}"