Skip to content

Commit 196ea23

Browse files
authored
Fix version format for development build (hacs#6)
1 parent f33085f commit 196ea23

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

get/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.1.1
2+
3+
- Fix version format for development build
4+
15
# 1.1.0
26

37
- Added option to get development builds

get/rootfs/etc/addon/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ elif bashio::var.equals "${CHANNEL}" "development"; then
3030

3131
bashio::log.info "Injecting a version..."
3232
current_version=$(curl -sSL https://data-v2.hacs.xyz/integration/data.json | jq -r '.["172733314"].last_version')
33-
updated_version="$(echo "${current_version}" | awk -F. -v OFS=. '{$NF += 1 ; print}').dev$(git rev-parse --short HEAD)"
33+
updated_version="$(echo "${current_version}" | awk -F. -v OFS=. '{$NF += 1 ; print}')-dev-$(git rev-parse --short HEAD)"
3434
python3 ./scripts/update/manifest.py --version "${updated_version}"
3535
bashio::log.info "Version set to: ${updated_version}"
3636

0 commit comments

Comments
 (0)