File tree Expand file tree Collapse file tree
{{cookiecutter.project_name|replace(" ", "")}}/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ find . -type f -name "*.txt" | while IFS= read -r logfile; do
8080 content=$( echo " $line " | cut -d: -f3-)
8181
8282 # Sanitize content to prevent command injection and log poisoning
83- sanitized_content=$( echo " $content " | tr -d ' \n\r' | head -c 200)
83+ sanitized_content=$( echo " $content " | tr -d ' \n\r' | cut -c1- 200)
8484
8585 # Determine the type of issue and output both annotation and count
8686 if echo " $content " | grep -qiE ' \berror\b' ; then
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ find . -type f -name "*.txt" | while IFS= read -r logfile; do
8080 content=$( echo " $line " | cut -d: -f3-)
8181
8282 # Sanitize content to prevent command injection and log poisoning
83- sanitized_content=$( echo " $content " | tr -d ' \n\r' | head -c 200)
83+ sanitized_content=$( echo " $content " | tr -d ' \n\r' | cut -c1- 200)
8484
8585 # Determine the type of issue and output both annotation and count
8686 if echo " $content " | grep -qiE ' \berror\b' ; then
You can’t perform that action at this time.
0 commit comments