ericwoud / buildRKarch

Build script for building an image for Rockchip devices running ArchLinux (RK3288/RK3588 for now)
37 stars 2 forks source link

prevent error output when preferred_erase_size is missing #3

Closed bastelfreak closed 1 year ago

bastelfreak commented 1 year ago

cat will output an error when the file is missing

ericwoud commented 1 year ago

Thanks for the tip, it is indeed better not showing the error when the script is running as expected.

Since the script outputs the result of $esize_mb anyway, stderr of cat can be rerouted. This will keep the code a bit more clear.