Some variables corresponding to ptxdist parameters use "true" as value when given, others use "1". PTXDIST_DIRTY, PTXDIST_FORCE and PTXDIST_PEDANTIC are in the first group according to
git grep -E 'PTXDIST_(DIRTY|FORCE|FEDANTIC)=' . Adapt ptxd_make_nested_ptxdist() accordingly. Fixes: 5169ae99daf8 ("add support for nested PTXdist execution") Signed-off-by: Uwe Kleine-König <u.kleine-koe...@pengutronix.de> --- scripts/lib/ptxd_make_nested.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/lib/ptxd_make_nested.sh b/scripts/lib/ptxd_make_nested.sh index cae12bceb377..2c4af5337207 100644 --- a/scripts/lib/ptxd_make_nested.sh +++ b/scripts/lib/ptxd_make_nested.sh @@ -46,13 +46,13 @@ ptxd_make_nested_ptxdist() { fi args=( "cd" "${pkg_workspace}" "&&" "${PTXDIST_TOPDIR}/bin/ptxdist" ) - if [ "${PTXDIST_DIRTY}" = 1 ]; then + if [ "${PTXDIST_DIRTY}" = true ]; then args[${#args[*]}]="--dirty" fi - if [ "${PTXDIST_FORCE}" = 1 ]; then + if [ "${PTXDIST_FORCE}" = true ]; then args[${#args[*]}]="--force" fi - if [ "${PTXDIST_PEDANTIC}" = 1 ]; then + if [ "${PTXDIST_PEDANTIC}" = true ]; then args[${#args[*]}]="--pedantic" fi if [ "${PTXDIST_QUIET}" = 1 ]; then -- 2.42.0