From 3a002f1b8ee00f1506df07264d1a2bb4c74d3869 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 2 Dec 2020 22:44:42 +0100 Subject: [PATCH] Replace sed by cut to get URL --- qb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qb b/qb index 6884f52..5365397 100755 --- a/qb +++ b/qb @@ -337,14 +337,14 @@ Try to manage ${RED}$(cat "${choice_temp_file}")${COLOR_DEBUG}." case "${local_content}" in bb*http* ) ## Classic bookmark - url=$(printf "%s" "${local_content}" | sed -e "s;bb \(http.*\) .*;\1;") + url=$(printf "%s" "${local_content}" | cut -d" " -f2) return_get_url="0" debug_message "get_url − \ URL from classic bookmark ${RED}${url}${COLOR_DEBUG}." goto_url ;; qq*http* ) ## Quickmark - url=$(printf "%s" "${local_content}" | sed -e "s;qq .*\(http.*\);\1;") + url=$(printf "%s" "${local_content}" | cut -d" " -f3) return_get_url="0" debug_message "get_url − \ URL from quickmark ${RED}${url}${COLOR_DEBUG}."