Skip to content

Commit c8940ad

Browse files
[generate_dump] Fix for empty /dump folder
Signed-off-by: vadymhlushko-mlnx <[email protected]>
1 parent 0ee19e5 commit c8940ad

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scripts/generate_dump

+1-6
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,7 @@ save_to_tar() {
276276
local start_t=$(date +%s%3N)
277277
local end_t=0
278278

279-
cd $DUMPDIR
280-
$TAR $V -rhf $TARFILE "$BASE"
279+
$TAR $V -rhf $TARFILE -C $DUMPDIR "$BASE"
281280

282281
end_t=$(date +%s%3N)
283282
echo "[ save_to_tar ] : $(($end_t-$start_t)) msec" >> $TECHSUPPORT_TIME_INFO
@@ -1683,10 +1682,6 @@ main() {
16831682
# 2nd counter snapshot late. Need 2 snapshots to make sense of counters trend.
16841683
save_counter_snapshot $asic 2
16851684

1686-
$RM $V -rf $TARDIR
1687-
$MKDIR $V -p $TARDIR
1688-
$MKDIR $V -p $LOGDIR
1689-
16901685
# Copying the /etc files to a directory and then tar it
16911686
$CP -r /etc $TARDIR/etc
16921687
rm_list=$(find -L $TARDIR/etc -maxdepth 5 -type l)

0 commit comments

Comments
 (0)