mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-17 23:07:55 +00:00
tests: fix nounset error with $GITHUB_ENV
Initialize $GITHUB_ENV to avoid nounset error when running the scripts locally
out of Github Actions.
Fixed commit 9ba5e3d2a8
Fixes #9217
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
@@ -95,7 +95,7 @@ function run() {
|
||||
|
||||
enabling_hypervisor
|
||||
|
||||
if [ -n "$GITHUB_ENV" ]; then
|
||||
if [ -n "${GITHUB_ENV:-}" ]; then
|
||||
start_time=$(date '+%Y-%m-%d %H:%M:%S')
|
||||
export start_time
|
||||
echo "start_time=${start_time}" >> "$GITHUB_ENV"
|
||||
|
Reference in New Issue
Block a user