Update README.md
[lace] / laceandterm
index 578d57bec5b369dcc11f8f5ce118c4dd43c0a14e..80d33f4ae02871240c5d3b454bdb11fb935f2494 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 
 # forked from https://gitlab.com/uoou/dotfiles/-/tree/master/stow/bin/home/drew/.local/bin/lace
-# https://raw.githubusercontent.com/frrobert2/lace/main/lace
+# https://raw.githubusercontent.com/frrobert2/lace/main/laceandterm
 # Shows both how many days ago and date
 # Modified to work with Debian running Sed 3.7
 if [ -z "$XDG_CONFIG_HOME" ];then
@@ -112,9 +112,9 @@ echo -n "" > $tmpfile
 #        
 
                if [[ "$1" == "nope" ]];then
-                       cat $tmpfile && rm -f $tmpfile $tmpfile2
+                       cat $tmpfile2 && rm -f $tmpfile $tmpfile2
                else
-               less -RisW $tmpfile && rm -f $tmpfile $tmpfile2
+               less -RisW $tmpfile2 && rm -f $tmpfile $tmpfile2
                fi
        }
 
@@ -134,7 +134,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://raw.githubusercontent.com/frrobert2/lace/main/laceandterm > "${BASH_SOURCE[0]}"
 else
        now_unix="$(date +'%s')"
        if [[ "$1" == "nope" ]];then