tFix dir2point for empty rm. - pointtools - Simple point utilities to hold text presentations.
(HTM) git clone git://r-36.net/pointtools
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit c9cabf113958e40665b11a0fed6c61fecc1bb3d4
(DIR) parent 1299c159e753b6c494bdec06e1f537a9b8f3f5f2
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 22 Jul 2018 17:53:14 +0200
Fix dir2point for empty rm.
Diffstat:
bin/dir2point | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/bin/dir2point b/bin/dir2point
t@@ -5,7 +5,8 @@ then
cd "$1"
fi
-rm *.txt
+rm *.txt 2>/dev/null
+
cat *.md | md2point
catpoint *.txt