projects
/
lace
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
760fa71
)
added some additional error checking to laced
author
frrobert2 <frrobert@stnectarios.org>
Wed, 12 May 2021 23:26:31 +0000
(19:26 -0400)
committer
frrobert2 <frrobert@stnectarios.org>
Wed, 12 May 2021 23:26:31 +0000
(19:26 -0400)
laced
patch
|
blob
|
history
diff --git
a/laced
b/laced
index a9424b5ca22b1b5b086eaa0f15eceaf1a54c0c9e..77e8e6b48563513d8d09e16a1ddf40bf23e11516 100755
(executable)
--- a/
laced
+++ b/
laced
@@
-109,7
+109,15
@@
function timeline() {
done<$tmpfile
cat $tmpfile2 | sed "s/^\([0-9]* [a-z]* ago\)$/${esc}$blue\1${esc}$nc/g" >$tmpfile
+ wordcount="$(wc -c $tmpfile | awk '{print $1}')"
+ if [[ "$wordcount" > 100 ]]; then
cp $tmpfile $config_place/microblogs.gmi
+ else
+
+sed -i '1i Laced could not connect to the Internet showing previous download' $config_place/microblogs.gmi
+
+ fi
+
rm -f $tmpfile $tmpfile2
}