X-Git-Url: https://software.frrobert.com/lace/blobdiff_plain/138a710e56c5a4399d45dac78ac40bf7d0047955..HEAD:/lace diff --git a/lace b/lace index 57c6663..2b7ad41 100755 --- a/lace +++ b/lace @@ -112,9 +112,10 @@ if [ ! -z "$fav" ];then [[ ! -z $(sed -n '$p' $tmpfile) ]] && echo "" >> $tmpfile fi done <"$subsfile" - cat $tmpfile | sed -r ':r;/(^|\n)$/!{$!{N;br}};s/\n/\v/g' | sed -rn '/^## .*/p' | sed -e 's/\v/\n/g' | sed -e "s/^## \(.*\)/date -d '\1' +%s/e" | sed -r ':r;/(^|\n)$/!{$!{N;br}};s/\n/\v/g' | sort -r | sed -e 's/\v/\n/g' > $tmpfile + cat $tmpfile | sed -r ':r;/(^|\n)$/!{$!{N;br}};s/\n/\v/g' | sed -rn '/^## .*/p' | sed -e 's/\v/\n/g' | sed -e "s/^## \(.*\)/date -d '\1' +%s/e" | sed -r ':r;/(^|\n)$/!{$!{N;br}};s/\n/\v/g' | sort -r | sed -e 's/\v/\n/g' > $tmpfile3 +cp $tmpfile3 $tmpfile # removed segment of code | sed "s/^\([0-9]\+\)$/{reldate \1 $now_unix;}/e" | sed "s/^\([0-9]* [a-z]* ago\)$/${esc}$blue\1${esc}$nc/g" while read line; do @@ -153,7 +154,7 @@ elif [[ "$1" == "unsub" ]];then 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://gitlab.com/frrobert2/lace/-/raw/dev/lace > "${BASH_SOURCE[0]}" else now_unix="$(date +'%s')" if [[ "$1" == "nope" ]];then