Skip to content

Commit 98591ab

Browse files
authored
Merge pull request #283 from github/snh/benchmark-init
Set the benchmark file path consistently
2 parents 9023b26 + d59458d commit 98591ab

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

bin/ghe-backup

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ if [ "$GHE_BACKUP_STRATEGY" = "tarball" ]; then
120120
GHE_MAINTENANCE_MODE_ENABLED=true
121121
fi
122122

123+
# Create benchmark file
124+
bm_init > /dev/null
125+
123126
ghe-backup-store-version ||
124127
echo "Warning: storing backup-utils version remotely failed."
125128

bin/ghe-restore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ if $instance_configured; then
203203
fi
204204
fi
205205

206+
# Create benchmark file
207+
bm_init > /dev/null
208+
206209
ghe-backup-store-version ||
207210
echo "Warning: storing backup-utils version remotely failed."
208211

share/github-backup-utils/bm.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ bm_start()
1818
{
1919
eval "$(bm_desc_to_varname $@)_start=$(date +%s)"
2020

21-
bm_file_path > /dev/null
21+
bm_init > /dev/null
2222
}
2323

24-
bm_file_path() {
24+
bm_init() {
2525
if [ -n "$BM_FILE_PATH" ]; then
2626
echo $BM_FILE_PATH
2727
return

0 commit comments

Comments
 (0)