about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xbollux4
1 files changed, 3 insertions, 1 deletions
diff --git a/bollux b/bollux index 668930e..4a8db07 100755 --- a/bollux +++ b/bollux
@@ -477,7 +477,9 @@ ujoin() { # ujoin URL_ARRAY<name>
477 printf -v URL_ARRAY[0] "%s:" "${URL_ARRAY[1]}" 477 printf -v URL_ARRAY[0] "%s:" "${URL_ARRAY[1]}"
478 fi 478 fi
479 479
480 if ucdef URL_ARRAY[2]; then 480 # Need special casing for file: protocol:
481 # https://datatracker.ietf.org/doc/html/rfc1738#section-3.10
482 if ucdef URL_ARRAY[2] || [[ "${URL_ARRAY[1]}" == file ]]; then
481 printf -v URL_ARRAY[0] "${URL_ARRAY[0]}//%s" "${URL_ARRAY[2]}" 483 printf -v URL_ARRAY[0] "${URL_ARRAY[0]}//%s" "${URL_ARRAY[2]}"
482 fi 484 fi
483 485