tmade publi.sh more straighforward to use - monochromatic - monochromatic blog: http://blog.z3bra.org
(HTM) git clone git://z3bra.org/monochromatic
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 08fbf73988524ea560bf3f0878c6045301744592
(DIR) parent beb90e8a3405b2f43245bf47ea6992a7808fa8dd
(HTM) Author: z3bra <willy@mailoo.org>
Date: Thu, 28 May 2015 10:54:29 +0200
made publi.sh more straighforward to use
Diffstat:
M publi.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/publi.sh b/publi.sh
t@@ -9,7 +9,7 @@ last=$(<index.txt cut -d' ' -f2 | sed 's/0x0*//;1q')
next=$(printf "0x%04x" `echo "1 16i${last}+p"|dc`)
# format our title and put it in a temp file
-sed '1s/^# /* '$next' - /;1p;d' last.txt > tmp.txt
+title=$(sed '1s/^# /* '$next' - /;1p;d' < last.txt)
sed -i "s(#)(${link/.txt/.html})" tmp.txt
# present out the final index for reviewing