From f87cded82c8eb030567a3b29da825ed5ece60733 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 30 Dec 2018 07:21:47 -0200 Subject: Use creation date of pastebin instead of dynamic exported date. --- pastebin/website-pastebin | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pastebin/website-pastebin') diff --git a/pastebin/website-pastebin b/pastebin/website-pastebin index 641e75b..185672d 100755 --- a/pastebin/website-pastebin +++ b/pastebin/website-pastebin @@ -72,7 +72,10 @@ sub slugify { our $dirname = dirname(__FILE__); our $in = "$dirname/skeleton.org"; our $out; -my %ENV = (title => $title); +my $date = `date +"%Y-%m-%d %A %H:%M"`; +chomp $date; +my %ENV = (title => $title, date => $date); + # Derived from both: # https://unix.stackexchange.com/a/294836 # https://stackoverflow.com/a/47664214 -- cgit v1.2.3