1
0
mirror of https://github.com/kmein/niveum synced 2026-03-21 04:11:07 +01:00

fix(restic): remove tmp dir

This commit is contained in:
2022-01-23 14:26:54 +01:00
parent 13b8154a2b
commit c3d94e5c49

View File

@@ -31,7 +31,7 @@ in
mountdir=$(mktemp -d) mountdir=$(mktemp -d)
trap clean EXIT trap clean EXIT
clean() { clean() {
rm "$mountdir" rm -r "$mountdir"
} }
${pkgs.restic}/bin/restic -r ${restic.repository} -p ${<secrets/restic/password>} mount "$mountdir" ${pkgs.restic}/bin/restic -r ${restic.repository} -p ${<secrets/restic/password>} mount "$mountdir"
'') '')