From db1604cb3d58bc076e66bc4de01af0c2ceb151da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Iwanicki?= Date: Fri, 20 Dec 2024 12:00:02 +0100 Subject: [PATCH] dts-functions: don't store absolute path in log tar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MichaƂ Iwanicki --- include/dts-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dts-functions.sh b/include/dts-functions.sh index 34e5d69..9ddfde7 100644 --- a/include/dts-functions.sh +++ b/include/dts-functions.sh @@ -1606,7 +1606,7 @@ send_dts_logs() { if [ -f ${FLASHROM_LOG_FILE} ]; then cp ${FLASHROM_LOG_FILE} $log_dir fi - tar czf "${log_dir}.tar.gz" $log_dir + tar czf "${log_dir}.tar.gz" -C "$(dirname "$log_dir")" $log_dir FULL_DTS_URL="https://cloud.3mdeb.com/index.php/s/"${BASE_DTS_LOGS_URL}