]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
fix: use double brackets instead of test
authorThomas Anderson <tnyeanderson@users.noreply.github.com>
Tue, 26 Sep 2023 00:12:29 +0000 (20:12 -0400)
committerBastien Wirtz <bastien.wirtz@gmail.com>
Sat, 21 Oct 2023 12:16:20 +0000 (05:16 -0700)
Co-authored-by: Bastien Wirtz <bastien.wirtz@gmail.com>
ipv6.sh

diff --git a/ipv6.sh b/ipv6.sh
index c013ed6e0656cb9f2d4ecbf88bf19f49dff8581d..00b0ddadf3fb613cf5efd6d6942a5b782cf32a75 100755 (executable)
--- a/ipv6.sh
+++ b/ipv6.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
 # Enable IPV6 if needed
-if test -z "$IPV6_DISABLE"; then
+if [[ "${IPV6_DISABLE}" == "1" ]]; then
        echo '$SERVER["socket"] == "[::]:" + env.PORT {  }'
 fi