Skip to content

Commit

Permalink
Fix: head -1 is interfering with the if-then clause
Browse files Browse the repository at this point in the history
  • Loading branch information
radio24 committed Apr 6, 2024
1 parent 8456843 commit 01fa9ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/prepare_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if grep "^UseBridges" ${TORRC}; then
MODE_BRIDGES="${RED} OBFS4 is running - will be deactivated."
elif grep -o "^Bridge meek_lite " ${TORRC}; then
MODE_BRIDGES="${RED} Meek-Azure is running - will be deactivated."
elif grep -o "^Bridge snowflake " ${TORRC} | head -1; then
elif grep -o "^Bridge snowflake " ${TORRC}; then
MODE_BRIDGES="${RED} Snowflake is running - will be deactivated."
else
MODE_BRIDGES="${GREEN} Are not running."
Expand All @@ -87,7 +87,7 @@ else
fi

# Is the Countermeasure against a tightly configured firewall active?
if grep -o "^ReachableAddresses " ${TORRC} | head -1; then
if grep -o "^ReachableAddresses " ${TORRC}; then
FIREWALL="${RED} Are running - will be deactivated."
sudo sed -i "s/^ReachableAddresses /#ReachableAddresses /g" ${TORRC}
else
Expand Down

0 comments on commit 01fa9ea

Please sign in to comment.