diff --git a/board/common/post-build.sh b/board/common/post-build.sh index 5a99c3b0..3ea9b22e 100755 --- a/board/common/post-build.sh +++ b/board/common/post-build.sh @@ -1,15 +1,17 @@ #!/bin/sh -. "$BR2_CONFIG" +# shellcheck disable=SC1090,SC1091 +. "$BR2_CONFIG" 2>/dev/null . "$TARGET_DIR/usr/lib/os-release" + if [ -n "${ID_LIKE}" ]; then ID="${ID} ${ID_LIKE}" fi -GIT_VERSION=$(git -C $BR2_EXTERNAL_INFIX_PATH describe --always --dirty --tags) +GIT_VERSION=$(git -C "$BR2_EXTERNAL_INFIX_PATH" describe --always --dirty --tags) # This is a symlink to /usr/lib/os-release, so we remove this to keep # original Buildroot information. -rm "$TARGET_DIR/etc/os-release" +rm -f "$TARGET_DIR/etc/os-release" { echo "NAME=\"Infix\"" echo "VERSION=${GIT_VERSION}" diff --git a/board/netconf/post-build.sh b/board/netconf/post-build.sh index a5beb06a..614c34ac 100755 --- a/board/netconf/post-build.sh +++ b/board/netconf/post-build.sh @@ -1,5 +1,6 @@ #!/bin/sh -. "$BR2_CONFIG" +# shellcheck disable=SC1090 +. "$BR2_CONFIG" 2>/dev/null # Drop Buildroot default symlink to /tmp if [ -L "$TARGET_DIR/var/lib/avahi-autoipd" ]; then