provisioning, add script to easily check the results.
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# 20260804 - Hyperling
|
||||||
|
|
||||||
|
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||||
|
source $DIR/.env
|
||||||
|
|
||||||
|
## Parameters ##
|
||||||
|
|
||||||
|
num_lines="$1"
|
||||||
|
if [[ -z "$num_lines" ]]; then
|
||||||
|
num_lines=20
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Setup ##
|
||||||
|
|
||||||
|
source $DIR/.env
|
||||||
|
|
||||||
|
## Main ##
|
||||||
|
|
||||||
|
ls $PT_STORAGE_DIR/*/test.log | while read test_log; do
|
||||||
|
echo -e "\n*** $test_log ***\n"
|
||||||
|
tail -n $num_lines $test_log
|
||||||
|
echo -e "\n\n"
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user