Compare commits

..

2 Commits

2 changed files with 29 additions and 3 deletions
+5 -3
View File
@@ -1,11 +1,13 @@
#!/usr/bin/env bash #!/usr/bin/env bash
sh -c "rm -rfv prov-test" REPO_NAME="git-repo"
sh -c "rm -rfv $LOCAL_REPO_NAME"
echo "Downloading Repo '$REPO' : Branch '$BRANCH'" echo "Downloading Repo '$REPO' : Branch '$BRANCH'"
git clone $REPO --branch=$BRANCH prov-test git clone $REPO --branch=$BRANCH $LOCAL_REPO_NAME
cd prov-test cd $LOCAL_REPO_NAME
echo "Starting Executable Script '$EXEC'" echo "Starting Executable Script '$EXEC'"
+24
View File
@@ -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