2023-03-21 19:56:02 +00:00
|
|
|
#!/usr/bin/with-contenv bash
|
2023-04-08 21:07:11 +00:00
|
|
|
# shellcheck shell=bash disable=SC1091,SC2015
|
|
|
|
|
|
|
|
source /scripts/common
|
2023-03-21 19:56:02 +00:00
|
|
|
|
|
|
|
# Print container version
|
|
|
|
#---------------------------------------------------------------------------------------------
|
|
|
|
# Copyright (C) 2023, Ramon F. Kolb (kx1t)
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License as published by the
|
|
|
|
# Free Software Foundation, either version 3 of the License, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License along with this program.
|
|
|
|
# If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
#---------------------------------------------------------------------------------------------
|
|
|
|
|
2023-05-04 18:40:09 +00:00
|
|
|
|
2023-05-04 22:59:05 +00:00
|
|
|
|
|
|
|
[[ -f /.CONTAINER_VERSION ]] && s6wrap --quiet --prepend=01-print-container-version --timestamps --args echo "Container Version: $(cat /.CONTAINER_VERSION), build date $(stat -c '%y' /.CONTAINER_VERSION |sed 's|\(.*\)\.[0-9]* \(.*\)|\1 \2|g')" || true
|