Skip to content

Commit f507f7a

Browse files
committed
scripts/before_deploy: extract correct build name
1 parent 1d466b4 commit f507f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/before_deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ VERSION=$(git describe --abbrev=8 --dirty --always --tags)
1212
echo "Preparing release for tagged version: $VERSION"
1313

1414
for file in .pio/build/*/firmware.bin; do
15-
env=$(echo "$file" | cut -f2 -d'/')
15+
env=$(echo "$file" | cut -f3 -d'/')
1616
cp "$file" "dist/mqtt433gateway_${env}-${VERSION}.bin"
1717
done

0 commit comments

Comments
 (0)