Added strict option
[lace] / laced
diff --git a/laced b/laced
index 77e8e6b48563513d8d09e16a1ddf40bf23e11516..ae8c8254ab76528857559fc6cc4ea7954b8a7d6e 100755 (executable)
--- a/laced
+++ b/laced
@@ -21,6 +21,12 @@ red="[31m"
 blue="[34m"
 nc="[m"
 esc=$(echo -e "\033")
+       if [[ "$1" == "strict" ]] || [[ "$1" == "--strict" ]] || [[ "$1" == "-strict" ]] || [[ "$1" == "-s" ]];then
+               red=""
+               blue=""
+               nc=""
+               esc=""
+       fi
 tmpfile=$(mktemp /tmp/lace.XXXXXX)
 tmpfile2=$(mktemp /tmp/lace.XXXXXX)
 function reldate() {
@@ -138,7 +144,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/laced > "${BASH_SOURCE[0]}"
 else
        now_unix="$(date +'%s')"
                timeline