I have to accept command line agreement before building the project. Key Q need to press to go to end of the agreement page and then need to press Y or y . I have tried printf 'qy\n' | source ../digi-2.4/mkproject.sh printf '\ny\n' | LESS='+q' source ../digi-2.4/mkproject.sh Nothing worked. Whats is correct way to do this in command line ? This is the license function
do_license() < local MKP_LICENSE_FILES=" \ $/sources/meta-digi/meta-digi-arm/DIGI_EULA \ $/sources/meta-digi/meta-digi-arm/DIGI_OPEN_EULA \ $/sources/meta-freescale/EULA \ " [ -z "$" ] && MKP_PAGER="| more" eval cat - "$" ; printf "\n" +-------------------------------------------------------------------------------+ | | | | | This software depends on libraries and packages that are covered by the | | following licenses: | | | | * Digi's end user license agreement | | * Digi's third party and open source license notice | | * NXP Semiconductors' software license agreement | | | | To have the right to use those binaries in your images you need to read and | | accept the licenses. | | | | | +-------------------------------------------------------------------------------+ _EOF_ unset MKP_LICENSE_FILES MKP_PAGER ans="" while [ -z "$" ]; do read -p "Do you accept all three license agreements? [y/Y to accept]: " ans done printf "%80s\n\n" | tr ' ' '-' [ "$" = "y" ] || return 1 >
also tried setting ans="y" For echo y | source ../digi-dey-2.4/mkproject.sh I just have to press Q , but till not working for Q and Y Looking for command line solution to accept the license agreement. I am on Ubuntu-18.04