diff --git a/.config/rofi/scripts/rofi-docs.sh b/.config/rofi/scripts/rofi-docs.sh index 065ee3b..b307bd7 100755 --- a/.config/rofi/scripts/rofi-docs.sh +++ b/.config/rofi/scripts/rofi-docs.sh @@ -53,7 +53,7 @@ get_docs_list() { } main() { - urls=("$(get_docs_list)") + mapfile -t urls < <(get_docs_list) url="$(get_url "${urls[@]}")" if [ -z "$url" ]; then printf "No URL selected.\n"