Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed Oct 23, 2023
1 parent 01bebe6 commit 81a57b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rootfs/etc/s6-overlay/scripts/99-print-container-version
Original file line number Diff line number Diff line change
Expand Up @@ -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: $(</.CONTAINER_VERSION)"
fi

0 comments on commit 81a57b5

Please sign in to comment.