scripts

My personal collection of scripts
git clone git://src.gearsix.net/scripts
Log | Files | Refs | Atom | README | LICENSE

commit 34b7ab261fb2a7a0cb0ef90b5602c17263004551
parent 956893e4383ff899f825b2f18d2f5f3cae17f107
Author: GeaRSiX <gearsix@tuta.io>
Date:   Wed, 12 Aug 2020 10:52:24 +0100

Merge branch 'master' of https://notabug.org/gearsix/g6scripts

Diffstat:
Minstall | 2+-
Msrc/preview-md.sh | 7++++---
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/install b/install @@ -46,7 +46,7 @@ install_script () { if [[ $ln -eq 0 ]]; then echo "install $src -> $dest" - install -pDm754 $src $dest + install -pDm755 $src $dest else # ln the file echo "ln -s $src -> $dest" chmod +x $src diff --git a/src/preview-md.sh b/src/preview-md.sh @@ -4,10 +4,11 @@ # dependencies: cmark # e.g.$ preview-md README.md --open -mdconv=cmark -out=~/tmp/README.html +mdconv="cmark --unsafe" +out=/tmp/README.html -${mdconv} $1 >> $out +if [ -e $out ]; then rm $out; fi +$mdconv $1 >> $out if [ $? -eq 0 ]; then echo "succesfully converted to $out" if [ ! -z $2 ] && [ $2 = "--open" ] || [ $2 = "-o" ]; then