From f1eaf7ca8eeb640a766ce9d613d9bc2e594f087b Mon Sep 17 00:00:00 2001 From: takahiro-ino Date: Fri, 15 Nov 2024 17:22:09 +0900 Subject: [PATCH] accept hyphen in host names. --- mellon_create_metadata.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mellon_create_metadata.sh b/mellon_create_metadata.sh index b1a47c6..26bde52 100755 --- a/mellon_create_metadata.sh +++ b/mellon_create_metadata.sh @@ -36,7 +36,7 @@ fi HOST="$(echo "$BASEURL" | sed 's#^[a-z]*://\([^:/]*\).*#\1#')" BASEURL="$(echo "$BASEURL" | sed 's#/$##')" -OUTFILE="$(echo "$ENTITYID" | sed 's/[^0-9A-Za-z.]/_/g' | sed 's/__*/_/g')" +OUTFILE="$(echo "$ENTITYID" | sed 's/[^0-9A-Za-z.-]/_/g' | sed 's/__*/_/g')" echo "Output files:" echo "Private key: $OUTFILE.key" echo "Certificate: $OUTFILE.cert"