diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-05-03 20:24:33 +0100 |
---|---|---|
committer | Lyndon Brown <jnqnfe@gmail.com> | 2020-05-03 23:20:39 +0100 |
commit | ebf4b04b7f0bab4745ca9345c26a83d937a72578 (patch) | |
tree | c0742498c544380ecdfc89cdc8fb509d91438cb8 /scripts/build/source_disk | |
parent | 558942eccb9d90aa5ba0b9e0158504669efe907c (diff) | |
download | vyos-live-build-ebf4b04b7f0bab4745ca9345c26a83d937a72578.tar.gz vyos-live-build-ebf4b04b7f0bab4745ca9345c26a83d937a72578.zip |
source_disk: de-duplicate date construction
Gbp-Dch: Ignore
Diffstat (limited to 'scripts/build/source_disk')
-rwxr-xr-x | scripts/build/source_disk | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/scripts/build/source_disk b/scripts/build/source_disk index ca2bf6109..dc8398137 100755 --- a/scripts/build/source_disk +++ b/scripts/build/source_disk @@ -85,29 +85,31 @@ then esac fi +_DATE="$(date +%Y%m%d-%H:%M)" + case "${LB_DEBIAN_INSTALLER}" in cdrom) - echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/CD Source $(date +%Y%m%d-%H:%M)" > source/.disk/info + echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/CD Source ${_DATE}" > source/.disk/info ;; netinst) - echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/NETINST Source $(date +%Y%m%d-%H:%M)" > source/.disk/info + echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/NETINST Source ${_DATE}" > source/.disk/info ;; netboot) - echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/NETBOOT Source $(date +%Y%m%d-%H:%M)" > source/.disk/info + echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/NETBOOT Source ${_DATE}" > source/.disk/info ;; live) - echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/INSTALL Source $(date +%Y%m%d-%H:%M)" > source/.disk/info + echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/INSTALL Source ${_DATE}" > source/.disk/info ;; businesscard) - echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/BC Source $(date +%Y%m%d-%H:%M)" > source/.disk/info + echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/BC Source ${_DATE}" > source/.disk/info ;; none) - echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE Source $(date +%Y%m%d-%H:%M)" > source/.disk/info + echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE Source ${_DATE}" > source/.disk/info ;; esac |