From 1ac9afbd19cd755422ec912fb614dd53915ca0c4 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Tue, 18 Mar 2025 06:48:49 +0100 Subject: [PATCH] fix nossl --- latest.sh | 4 ++-- sync-status.sh | 2 +- timestamp.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/latest.sh b/latest.sh index 31c9cbb8..8f89b338 100755 --- a/latest.sh +++ b/latest.sh @@ -11,9 +11,9 @@ while IFS= read -r line; do blacklist+=("$line") done < "$BASEPATH/path-blacklist.txt" -if $NO_SSL; then +if [ -n "$NO_SSL" ]; then PROTO="http" - DOMAIN="0.0.0.0" + DOMAIN="${DOMAIN:-0.0.0.0}" fi pathlist=$(cat $BASEPATH/$1.yml | grep -oP "(?<=stripprefix\.prefixes).*\"" | cut -d'=' -f2- | sed 's/.$//') diff --git a/sync-status.sh b/sync-status.sh index 5c941966..336f3701 100755 --- a/sync-status.sh +++ b/sync-status.sh @@ -9,7 +9,7 @@ while IFS= read -r line; do blacklist+=("$line") done < "$BASEPATH/path-blacklist.txt" -if $NO_SSL; then +if [ -n "$NO_SSL" ] then PROTO="http" DOMAIN="${DOMAIN:-0.0.0.0}" else diff --git a/timestamp.sh b/timestamp.sh index 3ed8a699..ffa4272b 100755 --- a/timestamp.sh +++ b/timestamp.sh @@ -9,7 +9,7 @@ while IFS= read -r line; do blacklist+=("$line") done < "$BASEPATH/path-blacklist.txt" -if $NO_SSL; then +if [ -n "$NO_SSL" ]; then PROTO="http" DOMAIN="${DOMAIN:-0.0.0.0}" else