Skip to content

Commit

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

# Install squid proxy for proxy test
default_ip="$(ip route get $(ip route show 0.0.0.0/0 | grep -oP 'via \K\S+') | grep -oP 'src \K\S+')"
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+')"
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 4386dde

Please sign in to comment.