aboutsummaryrefslogtreecommitdiff
path: root/exp/exp.sh
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-09-30 19:29:06 +0200
committern-peugnet <n.peugnet@free.fr>2021-09-30 19:29:06 +0200
commit875d015fc4743a457ca504ccf3ef3a9ae26d0eb3 (patch)
treefd945ca25d3a278231a675ca7497542917af53d9 /exp/exp.sh
parentcda8a65123b95b1c59fd43cec8a0863b484c5deb (diff)
downloaddna-backup-875d015fc4743a457ca504ccf3ef3a9ae26d0eb3.tar.gz
dna-backup-875d015fc4743a457ca504ccf3ef3a9ae26d0eb3.zip
simplify exp by not using mktemp
Diffstat (limited to 'exp/exp.sh')
-rwxr-xr-xexp/exp.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/exp/exp.sh b/exp/exp.sh
index 8cc1fa4..8c861a3 100755
--- a/exp/exp.sh
+++ b/exp/exp.sh
@@ -2,12 +2,7 @@
commits_file=$1
repo_path=$2
-
-temp_templ="dna-backup-bench-XXXXX"
-mktemp="mktemp --tmpdir -d $temp_templ"
-
-temp=$($mktemp)
-echo temp dir: $temp >&2
+temp=$3
cat $commits_file | while read i
do
@@ -15,4 +10,3 @@ do
git -C $repo_path checkout $hash
../dna-backup commit -v 2 $repo_path $temp
done
-du -bad 2 $temp