From 84aec248fc791ecbc335a02c5c38b0136e4111c7 Mon Sep 17 00:00:00 2001 From: Brock Allen Date: Sun, 3 Mar 2024 22:14:39 -0800 Subject: [PATCH] fix: print tarball path before loading --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index cc2f4eb..0899a4c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,6 +8,9 @@ if [ ! -z $INPUT_DOCKER_NETWORK ]; then INPUT_OPTIONS="$INPUT_OPTIONS --network $INPUT_DOCKER_NETWORK" fi -then echo "loading image from $INPUT_TARBALL"; docker load --input $INPUT_TARBALL +if [ ! -z $INPUT_TARBALL ]; +then echo "loading image from $INPUT_TARBALL" + docker load --input $INPUT_TARBALL +fi exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "${INPUT_RUN//$'\n'/;}"