Remove quotes from command option interpolation (#876)

There was a quoting bug as `INSTALLFLAGS` contains both the option key and value.
This causes the subsequent commands to look something like `python ... '--target foo'...`, causing
the command to treat the entire string `--target foo` as an option key rather than a key-value pair.
This commit is contained in:
Victor Chan 2021-01-03 18:51:50 +11:00 committed by GitHub
parent bf49bf8356
commit 26a18f1d70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -144,14 +144,14 @@ fi
# Make sure that pip is available
if ! ${PYTHON} -m pip -V; then
${PYTHON} -m ensurepip "${INSTALLFLAGS}" --upgrade
${PYTHON} -m ensurepip ${INSTALLFLAGS} --upgrade
fi
# Upgrade pip itself
${PYTHON} -m pip install "${INSTALLFLAGS}" --upgrade pip
${PYTHON} -m pip install ${INSTALLFLAGS} --upgrade pip
# Install Python dependencies
${PYTHON} -m pip install "${INSTALLFLAGS}" -Ur requirements.txt
${PYTHON} -m pip install ${INSTALLFLAGS} -Ur requirements.txt
# Load Pwndbg into GDB on every launch.
if ! grep pwndbg ~/.gdbinit &>/dev/null; then