diff --git a/rootfs/etc/s6-overlay/scripts/99-print-container-version b/rootfs/etc/s6-overlay/scripts/99-print-container-version index 9f48aef..2578520 100755 --- a/rootfs/etc/s6-overlay/scripts/99-print-container-version +++ b/rootfs/etc/s6-overlay/scripts/99-print-container-version @@ -27,4 +27,6 @@ s6wrap=(s6wrap --quiet --timestamps --prepend="$(basename "$0")") # Print container version -"${s6wrap[@]}" --args echo "Container Version: $([[ -f .CONTAINER_VERSION ]] && cat .CONTAINER_VERSION || true))" +if [[ -f /.CONTAINER_VERSION ]]; then + "${s6wrap[@]}" --args echo "Container Version: $(