diff --git a/give_runs_log.sh b/give_runs_log.sh index a2f5cb6..6e1060d 100644 --- a/give_runs_log.sh +++ b/give_runs_log.sh @@ -1,8 +1,7 @@ #!/bin/bash log_file="$1" if [ -f "$log_file" ]; then - # head -n -1 "$log_file" - cat "$log_file" + head -n -1 "$log_file" exit_code=$(tail -n 1 "$log_file") if [[ "$exit_code" == "Exit Code: 0" ]]; then exit 0