Merge pull request #36 from openappsec/WrightNed-patch-1

Update cp-agent-info.sh
This commit is contained in:
WrightNed
2023-07-12 19:04:46 +03:00
committed by GitHub

View File

@@ -224,8 +224,8 @@ fi
if [ -n "${SPLIT_DIR}" ]; then
mkdir -p "$SPLIT_DIR"
unsplited_tar="${CP_UNSPLITED_DIR}/agent-info.tar.gz"
if [ "$IS_SMB" != "1" ]; then
TAR_EXTRA_PARAMS="-P"
if [ `tar --help | grep absolute-names | wc -l` = "1" ]; then
TAR_EXTRA_PARAMS="--absolute-names"
else
TAR_EXTRA_PARAMS=""
fi