fixed phone ip variable bug

This commit is contained in:
Steven Burnham 2023-12-07 21:01:34 -05:00
parent 6a220095a2
commit bbdcc08ae2
No known key found for this signature in database
GPG key ID: D765679712A2FC3D

View file

@ -58,10 +58,7 @@ cd "$env:USERPROFILE\pypush"
# Install dependencies from the requirements.txt file using pip. # Install dependencies from the requirements.txt file using pip.
Write-Output "Installing dependencies" Write-Output "Installing dependencies"
pip install -r "requirements.txt" pip install -r "requirements.txt"
# Store the IP address in a variable.
$phoneIpVariable = Set-Variable -Name phoneIp -Value $phoneIp -Scope Global
# Execute the `python demo.py` script with the phone IP address passed as a parameter. # Execute the `python demo.py` script with the phone IP address passed as a parameter.
Write-Output "Registering" Write-Output "Registering"
python demo.py --phone $phoneIpVariable python demo.py --phone $phoneIp