tSafety check in droid4 sed call. - arm-sdk - os build toolkit for various embedded devices (HTM) git clone https://git.parazyd.org/arm-sdk (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- (DIR) commit 4315f4cceeabcd14558f82606d9c631d8e94cdd3 (DIR) parent 2084a179f6f6c3bfeae5c1cebdac32710e85b27f (HTM) Author: parazyd <parazyd@dyne.org> Date: Mon, 22 Jun 2020 11:06:40 +0200 Safety check in droid4 sed call. Diffstat: M boards/droid4.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- (DIR) diff --git a/boards/droid4.sh b/boards/droid4.sh t@@ -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}() {