We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ee19e5 commit c8940adCopy full SHA for c8940ad
scripts/generate_dump
@@ -276,8 +276,7 @@ save_to_tar() {
276
local start_t=$(date +%s%3N)
277
local end_t=0
278
279
- cd $DUMPDIR
280
- $TAR $V -rhf $TARFILE "$BASE"
+ $TAR $V -rhf $TARFILE -C $DUMPDIR "$BASE"
281
282
end_t=$(date +%s%3N)
283
echo "[ save_to_tar ] : $(($end_t-$start_t)) msec" >> $TECHSUPPORT_TIME_INFO
@@ -1683,10 +1682,6 @@ main() {
1683
1682
# 2nd counter snapshot late. Need 2 snapshots to make sense of counters trend.
1684
save_counter_snapshot $asic 2
1685
1686
- $RM $V -rf $TARDIR
1687
- $MKDIR $V -p $TARDIR
1688
- $MKDIR $V -p $LOGDIR
1689
-
1690
# Copying the /etc files to a directory and then tar it
1691
$CP -r /etc $TARDIR/etc
1692
rm_list=$(find -L $TARDIR/etc -maxdepth 5 -type l)
0 commit comments