quilc
quilc copied to clipboard
replace "more" with "cat" in forest deployement
running the installation with
./forest-sdk-2.10.0-linux-rpm.run` --accept --quiet
one still need to go and push the space bar because of lines
MS_PrintLicense() { if test x"$licensetxt" != x; then echo "$licensetxt" | more
more requires command line input in order to go through the licence. Essentially defeating the purpose of the --accept option
Ah. Interesting. The tools we use to produce the SDK packages are not publicly available, and so I will make a note to fix this before the next SDK release. Thanks for your input, @vlimant :)
This appears to be fixed in the latest version of makeself
Here is the commit. Unfortunately, doesn't appear to have made it into a released version yet:
https://github.com/megastep/makeself/commit/6c852b089f843b9df60df3ce866d27979a1580da
thanks for considering this. I notice https://github.com/megastep/makeself/pull/100 and https://github.com/megastep/makeself/pull/150 but the latest forest sdk under https://qcs.rigetti.com/sdk-downloads , namely forest-sdk-2.22.0-linux-rpm still require a human intervention in the installation.
MS_PrintLicense()
{
if test x"$licensetxt" != x; then
echo "$licensetxt" | more
if test x"$accept" != xy; then
while true
do
MS_Printf "Please type y to accept, n otherwise: "
read yn
if test x"$yn" = xn; then
keep=n
eval $finish; exit 1
break;
elif test x"$yn" = xy; then
break;
fi
done
fi
fi
}
this is because more does ask for "next page or quit"