From @serlibrem post:
fatal: destination path 'librem5-flash-image' already exists and is not an empty directory.
Otherwise my post (suggestion) is wrong indeed:
~/librem5-flash-image/scripts# ./librem5-flash-image 2022-04-13 20:33:28,866 INFO Looking for librem5r4 plain byzantium image 2022-04-13 20:33:32,625 INFO Found disk image Build 10877 'plain librem5r4 byzantium image' from Wed Apr 13 02:44:19 2022 2022-04-13 20:33:34,309 INFO Found uboot Build 82 from Fri Sep 10 20:19:03 2021 2022-04-13 20:33:34,309 INFO Downloading to ./tmp_librem5-flash-image__0w8v429 2022-04-13 20:33:34,898 INFO Downloading image from https://arm01.puri.sm/job/Images/job/Image%20Build/10877/artifact/librem5r4.img.xz 2022-04-13 20:38:22,804 INFO Calculating sha256sum of ./tmp_librem5-flash-image__0w8v429/librem5r4.img 2022-04-13 20:39:23,779 INFO Downloading uboot from https://arm01.puri.sm/job/u-boot_builds/job/uboot_librem5_build/82/artifact/output/uboot-librem5/u-boot-librem5.imx 80%|███████████████████████████████████████████▎ | 860160/1073880 [00:00<00:00, 2141448.77it/s] Turn all Hardware-Kill-Switches off Remove battery Hold volume-up Insert the USB-c cable: (red light blinks, no green light) Reinsert the battery: (red light is constantly on, the script will continue) Searching... 100%|█████████████████████████████████████████████████████| 1073880/1073880 [00:11<00:00, 2141448.77it/s]
^C2022-04-13 20:45:49,119 ERROR CTRL-C pressed. 2022-04-13 20:45:49,120 INFO Cleaning up.