Commit 4f05643c authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Support flutter install paths containing spaces (#8014)

parent 4d8395e1
......@@ -30,10 +30,10 @@ function follow_links() {
# Convert a filesystem path to a format usable by Dart's URI parser.
function path_uri() {
# Reduce multiple leading slashes to a single slash.
echo $1 | sed -E -e "s,^/+,/,"
echo "$1" | sed -E -e "s,^/+,/,"
}
PROG_NAME="$(path_uri $(follow_links "$BASH_SOURCE"))"
PROG_NAME="$(path_uri "$(follow_links "$BASH_SOURCE")")"
BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)"
export FLUTTER_ROOT="$(cd "${BIN_DIR}/.." ; pwd -P)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment