Skip to content

Commit

Permalink
change empty var check for publicIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mkamau-flr authored and mboben committed Jan 10, 2024
1 parent 7a8ec28 commit ff534ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eo pipefail

if [ "$AUTOCONFIGURE_PUBLIC_IP" = "1" ];
then
if [ "$PUBLIC_IP" = "" ];
if [ -z "$PUBLIC_IP" ];
then
echo "Autoconfiguring public IP"
PUBLIC_IP=$(curl -s -m 10 https://flare.network/cdn-cgi/trace | grep 'ip=' | cut -d'=' -f2)
Expand Down

0 comments on commit ff534ae

Please sign in to comment.