From 39f48ea3afa3b53ef409e3ca0f6da3d20d16b032 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 17 Jul 2023 21:41:55 -0700 Subject: fix: shellcheck lints --- src/hidive_command.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hidive_command.sh') diff --git a/src/hidive_command.sh b/src/hidive_command.sh index d3025df..990ddee 100644 --- a/src/hidive_command.sh +++ b/src/hidive_command.sh @@ -1,5 +1,5 @@ -if [ -n "${args[search]}" ]; then - xdg-open https://www.hidive.com/search?q="$(array_to_string "${args[search]}")" +if [[ -n "${args[search]}" ]]; then + xdg-open https://www.hidive.com/search?q="$(array_to_string "${args[search]}" || true)" else xdg-open https://www.hidive.com/ fi -- cgit v1.2.3