State of the UBports installer, or command line

If it was only that :slight_smile:
I just trial-and-errored my way through the sha256sum.exe for Windows and the Windows cmd … Long story short:

Example which will not work on Windows (from the current UBports manual instructions):
echo "534cc2da2add4a2bd8136b01069ed7dbe432076659fd4780910b6910b916f77b recovery.img" | sha256sum -c

… would have to be changed into this to work on Windows:
(echo 534cc2da2add4a2bd8136b01069ed7dbe432076659fd4780910b6910b916f77b *recovery.img && echo.) | sha256sum -c

  • sha256sum on Windows needs a line break following the checksum and the file to check, else sha256sum will complain about “standard input: no properly formatted SHA256 checksum lines found”.
    echo. (including the dot) takes care of this.
  • To include the line break into what gets piped to sha256sum, the output of the two echo commands has to be joined using parentheses.
  • An asterisk is needed in front of the file to check, else the check will fail.

Edit: Issue on GitHub … Manual installation instructions for device FP2, Windows route will not work if followed exactly · Issue #18 · ubports/devices.ubuntu-touch.io · GitHub

1 Like