diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-12-29 21:38:36 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-12-29 21:38:36 +0200 |
commit | 428f55c147887228a215df6d773edc7055686639 (patch) | |
tree | d407d2ba2945db93fe1b827f28c997b4bce79483 /yarns | |
parent | 261587b864817adf495cdab985e0a87bc62ba177 (diff) | |
download | obnam-428f55c147887228a215df6d773edc7055686639.tar.gz |
Use if given
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/obnam.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/yarns/obnam.sh b/yarns/obnam.sh index 0792bcee..398c0a92 100644 --- a/yarns/obnam.sh +++ b/yarns/obnam.sh @@ -54,6 +54,12 @@ run_obnam() # away, so a zero timeout is OK. add_to_config "$name" lock-timeout 0 + # If a repository format has been specified, use it. + if [ -n "$REPOSITORY_FORMAT" ] + then + add_to_config "$name" repository-format "$REPOSITORY_FORMAT" + fi + ( if [ -e "$DATADIR/$name.env" ] then |