1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

handle empty suffix correctly

This commit is contained in:
andreas
2023-09-05 19:21:53 +02:00
parent 0709e92b6f
commit f6cbcecb78

View File

@@ -49,10 +49,15 @@ jobs:
name: "rename"
working_directory: ".pio/build/<< pipeline.parameters.environment >>"
command: "mv firmware.bin << pipeline.parameters.environment >><< pipeline.parameters.suffix >>-update.bin"
- run:
name: "rename2"
working_directory: ".pio/build/<< pipeline.parameters.environment >>"
command: "mv << pipeline.parameters.environment >>-all.bin << pipeline.parameters.environment >><< pipeline.parameters.suffix >>-all.bin"
- when:
condition:
not:
equal: [ << pipeline.parameters.suffix >> ,""]
steps:
- run:
name: "rename2"
working_directory: ".pio/build/<< pipeline.parameters.environment >>"
command: "mv << pipeline.parameters.environment >>-all.bin << pipeline.parameters.environment >><< pipeline.parameters.suffix >>-all.bin"
- run:
name: "compress"
working_directory: ".pio/build/<< pipeline.parameters.environment >>"