forked from freifunk-franken/firmware
Adrian Schmutzler
a157f413d4
This removes two useless cat as found by shellcheck: sumnew=$(cat "$hoodfiletmp" 2>/dev/null | sha256sum | cut -f1 -d " ") ^-- SC2002: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. While not functionally relevant in our case, note that cat <non-existant-file> | sha256sum actually returns a hash code, while sha256sum <non-existant-file> does not return anything on stdout. Since we check the existance of $hoodfiletmp before calling sha256sum, though, we always have a hash value for at least one file, so two empty checksum won't happen at that point. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de> |
||
---|---|---|
.. | ||
fff |