Skip to content

Commit

Permalink
workbench: indentation, comments and better error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaste committed May 31, 2023
1 parent e9c5959 commit 2ef3682
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 95 deletions.
1 change: 0 additions & 1 deletion nix/workbench/backend/nomad.sh
Expand Up @@ -824,7 +824,6 @@ backend_nomad() {
local nomad_task_driver=$(envjqr 'nomad_task_driver')
local one_tracer_per_node=$(envjqr 'one_tracer_per_node')

# TODO: Make it in parallel ?
msg "Fetch logs ..."

# Download healthcheck(s) logs.
Expand Down
4 changes: 2 additions & 2 deletions nix/workbench/lib.sh
Expand Up @@ -247,7 +247,7 @@ git_repo_commit_description() {
wait_fail_any () {
local processes=("$@")
# There are any processes left?
if test -n "${processes[*]}"
if test -n "${processes[*]:-}"
then
local wait_exit_status
local exited_process
Expand All @@ -263,7 +263,7 @@ wait_fail_any () {
fi
done
# Something else to wait for?
if test -n "${processes_p[*]}"
if test -n "${processes_p[*]:-}"
then
# Keep waiting or kill 'em all ?'
if test "${wait_exit_status}" -eq 0
Expand Down

0 comments on commit 2ef3682

Please sign in to comment.