aglsetup: Fix append_fragment fails with heredocs on Ubuntu 21.04. 28/26428/3
authorvasyl <vasyl.vavrychuk@opensynergy.com>
Mon, 14 Jun 2021 17:39:50 +0000 (20:39 +0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 24 Jun 2021 11:36:58 +0000 (11:36 +0000)
commitfac66e3b82213a2147edca7212ca3c0121e2b250
tree1f7c44d84b214478610a86a947688f1121304243
parent340e5d4c4173a921b6f9f18db0c9e830a778e465
aglsetup: Fix append_fragment fails with heredocs on Ubuntu 21.04.

Looks like bash creates temporary file for heredocs and passes fd to
deleted file to command that use heredocs. Therefore, it is better not
to use '[[ -f /dev/stdin ]]' in case of heredocs.

Replaced it with more relaxed condition.

Bug-AGL: SPEC-3990
Change-Id: Ib68d1510dd6899b0f60b207071b222ef1933bf77
Signed-off-by: vasyl <vasyl.vavrychuk@opensynergy.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/26428
Tested-by: Jenkins Job builder account
ci-image-build: Jenkins Job builder account
ci-image-boot-test: Jenkins Job builder account
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
scripts/.aglsetup_genconfig.bash