mirror of https://gerrit.osmocom.org/osmo-dev
net: run.sh: tweak quit logic
In some cases, the shell doesn't wait for the read to complete and just keeps on printing "q Enter to close" in an infinite loop, making it impossible to read the logs above. This happens with all terminals. I'm not sure about the exact cause, work around it by only printing the message once and sleeping inside the while true loop. Change-Id: Iebb799493f76fd57f24b15c998ded2bd8e284e6b
This commit is contained in:
parent
f907a6cf73
commit
9aaddbfe65
|
@ -120,12 +120,14 @@ wait
|
|||
|
||||
echo
|
||||
|
||||
echo '---'
|
||||
echo 'q Enter / ^C to close'
|
||||
while true; do
|
||||
echo 'q Enter to close'
|
||||
read q_to_close
|
||||
if [ "x\$q_to_close" = xq ]; then
|
||||
break
|
||||
fi
|
||||
sleep 0.1
|
||||
done
|
||||
EOF
|
||||
chmod +x "$wrapper"
|
||||
|
|
Loading…
Reference in New Issue