summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorAlexander Dahl <ada@thorsis.com>2024-05-06 12:50:48 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2024-05-09 11:39:01 +0200
commit33fa14b8b788e2d57d015c91c4c758708824a05d (patch)
treea673fc382d636eccebb017108126ce040de2bcbe /scripts/lib
parente859fea01e033f691efac8124902478f8496233c (diff)
downloadptxdist-33fa14b8b788e2d57d015c91c4c758708824a05d.tar.gz
ptxdist-33fa14b8b788e2d57d015c91c4c758708824a05d.tar.xz
ptxd_make_world_inject: Remove useless test
One line above $target is set to "${var}/$(subshell)" and even if $var _and_ the result of the subshell call is empty, there's still the slash. Thus target is never empty. Signed-off-by: Alexander Dahl <ada@thorsis.com> Acked-by: Michael Riesch <michael.riesch@wolfvision.net> Message-Id: <20240506105051.323546-2-ada@thorsis.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/ptxd_make_world_inject.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/lib/ptxd_make_world_inject.sh b/scripts/lib/ptxd_make_world_inject.sh
index fe4eb8363..5c2d0dc5f 100644
--- a/scripts/lib/ptxd_make_world_inject.sh
+++ b/scripts/lib/ptxd_make_world_inject.sh
@@ -11,9 +11,6 @@ ptxd_make_inject() {
source="$(echo ${inject_file} | cut -d ":" -f 1)"
target="${pkg_source}/$(echo ${inject_file} | cut -d ":" -f 2)"
- if [ -z "${target}" ]; then
- target="${source}"
- fi
if [[ "${source}" =~ ^/.* ]]; then
ptxd_bailout "'${source}' must not be an absolute path!" \