diff --git a/tests/scripts/hello b/tests/scripts/hello index bdddc6f..33c93d8 100755 --- a/tests/scripts/hello +++ b/tests/scripts/hello @@ -1,15 +1,10 @@ -#!/bin/bash +#!/bin/sh -read -r +read -r _ -i=0 - -while [[ i -lt 5 ]] +for i in $(seq 0 4) do - echo hello $i "$(date -Is)" - # bash is tricky! this actually writes to 1 instead of 2 - # don't know how to write to 2 in bash - # echo world $i "$(date -Is)" >&2 - i=$((i+1)) + echo "hello ${i} $(date -Iseconds)" + echo "world ${i} $(date -Iseconds)" >&2 sleep 0.5 done