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
}
elif [[ "$1" == "subs" ]];then
awk '{print $2" ("$1")"}' $subsfile
elif [[ "$1" == "update" ]];then
- curl https://raw.githubusercontent.com/frrobert2/lace/main/lace > "${BASH_SOURCE[0]}"
+ curl https://raw.githubusercontent.com/frrobert2/lace/main/laced > "${BASH_SOURCE[0]}"
else
now_unix="$(date +'%s')"
timeline