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 <[email protected]> --- scripts/lib/ptxd_make_world_inject.sh | 3 --- 1 file changed, 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!" \ -- 2.39.2
