From 01fa9ea47c6c49d4912c9f033d260e66b0424a9b Mon Sep 17 00:00:00 2001 From: radio24 Date: Sat, 6 Apr 2024 13:07:59 +0200 Subject: [PATCH] Fix: head -1 is interfering with the if-then clause --- install/prepare_image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/prepare_image.sh b/install/prepare_image.sh index 92d9c7f7..3e299665 100755 --- a/install/prepare_image.sh +++ b/install/prepare_image.sh @@ -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." @@ -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