Skip to content

Commit

Permalink
Quote variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartz committed Nov 14, 2023
1 parent 4386dde commit ed7c52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/pre-integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ loop_device=$(sudo losetup -f)

# Install squid proxy for proxy test
gateway_ip="$(ip route show 0.0.0.0/0 | grep -oP 'via \K\S+')"
default_ip="$(ip route get $gateway_ip | grep -oP 'src \K\S+')"
default_ip="$(ip route get "$gateway_ip" | grep -oP 'src \K\S+')"
sudo apt install squid
sudo sed -i 's/http_access deny/# http_access deny/g' /etc/squid/squid.conf
echo "http_access allow all" | sudo tee -a /etc/squid/squid.conf
Expand Down

0 comments on commit ed7c52c

Please sign in to comment.