aboutsummaryrefslogtreecommitdiff
path: root/exp/exp.sh
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-10-13 16:16:24 +0200
committern-peugnet <n.peugnet@free.fr>2021-10-13 16:16:24 +0200
commite2c176a084f46fcc235ae1bb69dda6965c4e80a2 (patch)
treef4ee271bfbd60b41ffc2b6e5677d9f1e737f9d04 /exp/exp.sh
parentd38e6e0cf5a9790f4e774f6900c4b02a62e9e034 (diff)
downloaddna-backup-e2c176a084f46fcc235ae1bb69dda6965c4e80a2.tar.gz
dna-backup-e2c176a084f46fcc235ae1bb69dda6965c4e80a2.zip
add option to configure SKIP_CHECK in exp
Diffstat (limited to 'exp/exp.sh')
-rwxr-xr-xexp/exp.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/exp/exp.sh b/exp/exp.sh
index 113d154..0c895b6 100755
--- a/exp/exp.sh
+++ b/exp/exp.sh
@@ -6,6 +6,7 @@
# - REPO_PATH: the path of the repo the experiment is based on
# - GIT_PATH: the path of the repo git-dir
# - MAX_VERSION: the max number for versions for the experiment
+# - SKIP_CHECK: the number of versions to skip checking
# - COMMITS: the name of the file that contains the lists of versions
# - TARGZ: the path of the tar.gz dir
# - DIFFS: the path of the git diff dir
@@ -77,7 +78,7 @@ do
$DNA_BACKUP commit -v 2 $flags $REPO_PATH $name
done
- if [[ $(( $i % 4 )) == 0 ]]
+ if [[ $(( $i % $SKIP_CHECK )) == 0 ]]
then
# Check restore from git diffs
log "restore from git diffs"