From 84f83d635bf11ed777c7261864cc4b2f366a7c41 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 4 Feb 2024 19:18:16 +0100 Subject: [PATCH] board/common: fix #294: drop 'v' from version in filenames The files inside a release tarball, as well as the tarball name itself, should not have the leading 'v', that's just for the tag. Also, add -ver to GNS3 disk.img file as well. Signed-off-by: Joachim Wiberg --- board/common/post-image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/common/post-image.sh b/board/common/post-image.sh index 846d8955..68cdee1b 100755 --- a/board/common/post-image.sh +++ b/board/common/post-image.sh @@ -22,7 +22,7 @@ diskimg=disk.img ver() { if [ -n "$INFIX_RELEASE" ]; then - printf -- "-%s" "$INFIX_RELEASE" + printf -- "-%s" "${INFIX_RELEASE#v}" return fi } @@ -42,7 +42,7 @@ fi load_cfg DISK_IMAGE if [ "$DISK_IMAGE" = "y" ]; then ixmsg "Creating Disk Image" - diskimg="${NAME}-disk.img" + diskimg="${NAME}-disk$(ver).img" bootcfg= if [ "$DISK_IMAGE_BOOT_DATA" ]; then bootcfg="-b $DISK_IMAGE_BOOT_DATA -B $DISK_IMAGE_BOOT_OFFSET"