Merge pull request #547 from cleverca22/fix-githubpulls-newline

fix a stray newline in a path
This commit is contained in:
Eelco Dolstra 2018-03-16 18:41:09 +01:00 committed by GitHub
commit df27358e11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,6 +58,7 @@ sub fetchInput {
system("jq -S . < $filename > $tempdir/github-pulls-sorted.json");
my $storePath = trim(`nix-store --add "$tempdir/github-pulls-sorted.json"`
or die "cannot copy path $filename to the Nix store.\n");
chomp $storePath;
my $timestamp = time;
return { storePath => $storePath, revision => strftime "%Y%m%d%H%M%S", gmtime($timestamp) };
}