attachment script and markdown preview

This commit is contained in:
2017-11-14 12:24:25 +01:00
parent bae2bceb00
commit 62cfa32a83
2 changed files with 3 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
# based on https://github.com/astroidmail/astroid/issues/339#issuecomment-300491869
cachedir=~/.cache/astroid-attachments
attachment=$(echo "$1" | sed -E "s#.*astroid/.+?-##")
attachment=$(echo "$1" | sed -E "s|.*astroid/[a-zA-Z0-9]*?-||")
touch $cachedir/token."$attachment"