Skip to content

Commit

Permalink
Fix archive-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahStapp committed Nov 13, 2024
1 parent fb15895 commit 6f74878
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .evergreen/scripts/archive-mongodb-logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

set -o xtrace
mkdir out_dir
find "$MONGO_ORCHESTRATION_HOME" -name \*.log -exec sh -c 'x=$1; mv $x $PWD/out_dir/$(basename $(dirname $x))_$(basename $x)' shell {} \;
# shellcheck disable=SC2156
find "$MONGO_ORCHESTRATION_HOME" -name \*.log -exec sh -c 'x="{}"; mv $x $PWD/out_dir/$(basename $(dirname $x))_$(basename $x)' \;
tar zcvf mongodb-logs.tar.gz -C out_dir/ .
rm -rf out_dir

0 comments on commit 6f74878

Please sign in to comment.