arm-sdk

os build toolkit for various embedded devices
git clone https://git.parazyd.org/arm-sdk
Log | Files | Refs | Submodules | README | LICENSE

commit 4315f4cceeabcd14558f82606d9c631d8e94cdd3
parent 2084a179f6f6c3bfeae5c1cebdac32710e85b27f
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 22 Jun 2020 11:06:40 +0200

Safety check in droid4 sed call.

Diffstat:
Mboards/droid4.sh | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/boards/droid4.sh b/boards/droid4.sh @@ -59,7 +59,10 @@ postbuild() { notice "executing $device_name postbuild" copy-root-overlay - sudo sed -e "s/@release@/${release}/" -i "$strapdir/boot/boot/boot.cfg" + + if [[ -e "$strapdir/boot/boot/boot.cfg" ]]; then + sudo sed -e "s/@release@/${release}/" -i "$strapdir/boot/boot/boot.cfg" + fi } build_kernel_${arch}() {