From: StaticRocket <[email protected]> Shellcheck: Consider using { cmd1; cmd2; } >> file instead of individual redirects.
Signed-off-by: StaticRocket <[email protected]> --- oe-layertool-setup.sh | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/oe-layertool-setup.sh b/oe-layertool-setup.sh index b824114..8e29f9a 100755 --- a/oe-layertool-setup.sh +++ b/oe-layertool-setup.sh @@ -818,16 +818,18 @@ EOM if [ -e "$oebase/tmp_append_local.conf" ] then - echo "" >> "$confdir/local.conf" - echo "#====================================================================" >> "$confdir/local.conf" - echo "# LOCALCONF: settings from config file:" >> "$confdir/local.conf" - echo "# $inputfile" >> "$confdir/local.conf" - echo "#" >> "$confdir/local.conf" - echo "# Do not remove." >> "$confdir/local.conf" - echo "#--------------------------------------------------------------------" >> "$confdir/local.conf" - cat "$oebase/tmp_append_local.conf" >> "$confdir/local.conf" - echo "#====================================================================" >> "$confdir/local.conf" - echo "" >> "$confdir/local.conf" + { + echo ""; + echo "#===================================================================="; + echo "# LOCALCONF: settings from config file:"; + echo "# $inputfile"; + echo "#"; + echo "# Do not remove."; + echo "#--------------------------------------------------------------------"; + cat "$oebase/tmp_append_local.conf"; + echo "#===================================================================="; + echo ""; + } >> "$confdir/local.conf" rm "$oebase/tmp_append_local.conf" fi } -- 2.40.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14530): https://lists.yoctoproject.org/g/meta-arago/message/14530 Mute This Topic: https://lists.yoctoproject.org/mt/99392793/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
