From fc6355a3b28e6ff662505acdee661bbce969780d Mon Sep 17 00:00:00 2001 From: WrightNed <114073970+WrightNed@users.noreply.github.com> Date: Wed, 12 Jul 2023 18:02:52 +0300 Subject: [PATCH] Update cp-agent-info.sh Better checks which tar options exists --- nodes/orchestration/package/cp-agent-info.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/orchestration/package/cp-agent-info.sh b/nodes/orchestration/package/cp-agent-info.sh index 445196a..9cd4037 100755 --- a/nodes/orchestration/package/cp-agent-info.sh +++ b/nodes/orchestration/package/cp-agent-info.sh @@ -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