Merge pull request #18221 from blazczak/master

Fix SyntaxError introduced by a refactor in bc0f5ee
This commit is contained in:
Ruoyu Zhong 2024-09-02 05:56:17 +08:00 committed by GitHub
commit 33f53ddb36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,7 @@ _create_lock() {
flock -n "${lock_file_descriptor}"
elif [[ -x "${python}" ]]
then
"${python}" -c "import fcntl; fcntl.flock(${lock_fd}, fcntl.LOCK_EX | fcntl.LOCK_NB)"
"${python}" -c "import fcntl; fcntl.flock(${lock_file_descriptor}, fcntl.LOCK_EX | fcntl.LOCK_NB)"
else
onoe "Cannot create \`brew ${command_name_and_args}\` lock due to missing/too old ruby/flock/python, please avoid running Homebrew in parallel."
fi