Skip to content

Commit bdf0233

Browse files
authored
Merge pull request #23 from Monadical-SAS/afreydev/extract-domain-fix
chore: Improve domain extraction in letsencrypt generation
2 parents 4229510 + 53b2af7 commit bdf0233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tail_logs() {
2323
}
2424

2525
extract_domain() {
26-
echo "$1" | sed -E 's/.*\.([^.]+\.[^.]+)$/\1/'
26+
echo "$1" | sed -E 's/.*\.([^.]+\.[^.]+\.[^.]+)$/\1/; t; s/.*\.([^.]+\.[^.]+)$/\1/'
2727
}
2828

2929
add_key_in_env() {

0 commit comments

Comments
 (0)