aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-03-19 23:36:39 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-03-20 05:50:30 +0100
commit347c5d738085d18bad5d6b1fcb2b6516151104fd (patch)
treec9f6f7aaa929c1df2e1184a18a5f2588b018f3ac
parentd4fd94584ce239e72fc68beac2be4bb9398dac92 (diff)
wibble
-rwxr-xr-xicevault4
1 files changed, 2 insertions, 2 deletions
diff --git a/icevault b/icevault
index 9962f21..d454a18 100755
--- a/icevault
+++ b/icevault
@@ -304,9 +304,9 @@ sub saveIdentityFile($$) {
error "C<%s> exited with value %d", $CONFIG{gpg}, ($? >> 8) if $? and $? != -1;
$outfh->close;
- my $parent_dir = $file =~ s/\/[^\/]+$//r;
+ my $parent_dir = $filename =~ s/\/[^\/]+$//r;
File::Path::make_path($parent_dir) unless -d $parent_dir; # create parent directories recursively
- File::Copy::move($outfh->filename, $file) or error "Can't move C<%s>: %s", $outfh->filename, $!;
+ File::Copy::move($outfh->filename, $filename) or error "Can't move C<%s>: %s", $outfh->filename, $!;
# TODO: git add $filename; git commit
}