aboutsummaryrefslogtreecommitdiff
path: root/pastebin/website-pastebin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xpastebin/website-pastebin9
1 files changed, 6 insertions, 3 deletions
diff --git a/pastebin/website-pastebin b/pastebin/website-pastebin
index 0426584..641e75b 100755
--- a/pastebin/website-pastebin
+++ b/pastebin/website-pastebin
@@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
-#!nix-shell -i perl -p less perl --pure -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-18.09.tar.gz
+#!nix-shell -i perl -p less moreutils nvi perl --pure -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-18.09.tar.gz
=head1 NAME
@@ -88,8 +88,11 @@ sub envsubst {
}
my $slug = slugify($title);
-$out = "$dirname/../site/pastebin/$slug.org";
+$out = `realpath $dirname/../site/pastebin/$slug.org`;
+chomp $out;
envsubst();
-print `realpath $out`;
+`cat $out | vipe | sponge $out`;
+
+print "$out\n";