Skip to content

Commit

Permalink
PESDLC-1113 Fix bash liter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
savex committed Apr 26, 2024
1 parent 39550ff commit 53314a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/docker/ducktape-deps/tinygo-wasi-transforms
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function retry {
local count=0
until "$@"; do
exit=$?
count=$(($count + 1))
count=$((count + 1))
if [ $count -lt $retries ]; then
echo "Retry $count/$retries exited $exit, retrying..."
else
Expand Down
9 changes: 4 additions & 5 deletions tests/rptest/remote_scripts/cloud/pod_log_extract.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/bin/bash
files=($(find /var/log/pods/ -type f | grep "$1" | grep -v "configurator"))

for item in ${files[*]};
do
echo "# $item"
tail --lines=+$(cat $item | grep -n -m 1 "$2" | cut -d":" -f1) $item
echo "# End of log"
for item in ${files[*]}; do
echo "# $item"
tail --lines=+$(cat $item | grep -n -m 1 "$2" | cut -d":" -f1) $item
echo "# End of log"
done

0 comments on commit 53314a2

Please sign in to comment.