forked from firka/flutter
Fix extraneous spaces printed by flutter tool if the lock isn't waited on. (#58215)
This removes the extraneous whitespace printed when the flutter command is invoked, but didn't wait for a lock. It only is a problem when the carriage return isn't honored (as in IDE consoles).
This commit is contained in:
@@ -91,8 +91,10 @@ function _wait_for_lock () {
|
||||
fi
|
||||
sleep .1;
|
||||
done
|
||||
# Clear the waiting message so it doesn't overlap any following text.
|
||||
printf " \r";
|
||||
if [[ $waiting_message_displayed == "true" ]]; then
|
||||
# Clear the waiting message so it doesn't overlap any following text.
|
||||
printf " \r";
|
||||
fi
|
||||
unset waiting_message_displayed
|
||||
# If the lock file is acquired, make sure that it is removed on exit.
|
||||
trap _rmlock INT TERM EXIT
|
||||
|
||||
Reference in New Issue
Block a user