Update give_runs_log.sh

This commit is contained in:
2025-08-25 18:04:03 +02:00
parent 47efcf1ba7
commit 8722335d53
+1 -2
View File
@@ -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