Skip to content

Commit 7d9a09b

Browse files
committed
Rearchiving guard
1 parent a8d21d9 commit 7d9a09b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/nl/knaw/dans/datavault/config/DmfTarArchiveProviderFactory.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ public class DmfTarArchiveProviderFactory implements ArchiveProviderFactory {
4242

4343
@Override
4444
public ArchiveProvider build() {
45+
var ssh = new SshRunner(sshExecutable, user, host, archiveRoot);
4546
return new DmfTarArchiveProvider(
46-
new DmfTarRunner(dmfTarExecutable, user, host, archiveRoot),
47-
new SshRunner(sshExecutable, user, host, archiveRoot));
47+
new DmfTarRunner(dmfTarExecutable, ssh, user, host, archiveRoot),
48+
ssh);
4849
}
4950
}

0 commit comments

Comments
 (0)