summary refs log tree commit diff
path: root/md2saait/getdate
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-19 20:33:36 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-19 20:33:36 +0100
commita36bc6ec6b887feaae1072eef279c58bb5dcff0c (patch)
tree562528b57aca25580574d613ec6821dec2bdb01b /md2saait/getdate
parent679b29ec04a08c1ca43bfea6d0f5ac0ae10a72dc (diff)
downloadlow-puszcza-a36bc6ec6b887feaae1072eef279c58bb5dcff0c.tar.gz
low-puszcza-a36bc6ec6b887feaae1072eef279c58bb5dcff0c.zip
Add upstream
Diffstat (limited to 'md2saait/getdate')
-rwxr-xr-xmd2saait/getdate5
1 files changed, 3 insertions, 2 deletions
diff --git a/md2saait/getdate b/md2saait/getdate
index 280d5cc..76ab2a6 100755
--- a/md2saait/getdate
+++ b/md2saait/getdate
@@ -1,4 +1,5 @@
 #!/bin/sh
 
-frontmatter2cfg $1 | grep created | \
-  cut -d' ' -f 3 | cut -c 2- | rev | cut -c 2- | rev
+cfg=`./md2saait/frontmatter2cfg $1 | grep created`
+date=`echo $cfg | cut -d' ' -f 3`
+echo $date