Fix locking to work with flutter and dart running simultaneously (#133350)

This commit is contained in:
Ian Hickson
2023-08-25 14:30:07 -07:00
committed by GitHub
parent 347f7bac94
commit c4e1a1b387
3 changed files with 21 additions and 3 deletions

View File

@@ -50,6 +50,7 @@ function follow_links() (
PROG_NAME="$(follow_links "${BASH_SOURCE[0]}")"
BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)"
SHARED_NAME="$BIN_DIR/internal/shared.sh"
OS="$(uname -s)"
# If we're on Windows, invoke the batch script instead to get proper locking.
@@ -58,6 +59,6 @@ if [[ $OS =~ MINGW.* || $OS =~ CYGWIN.* || $OS =~ MSYS.* ]]; then
fi
# To define `shared::execute()` function
source "$BIN_DIR/internal/shared.sh"
source "$SHARED_NAME"
shared::execute "$@"