Need to use bash for process substitution
@anarcat turns out we actually need bash for process substitution (sha256sum -c <(echo "$dart_tarball_checksum $dart_tarball_filename")
)
are you alright with this script using bash, or would you rather have the script write the checksum to a tempfile?