aboutsummaryrefslogtreecommitdiff
path: root/src/watch_command.sh
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-07-17 21:41:55 -0700
committerFuwn <[email protected]>2023-07-17 21:41:55 -0700
commit39f48ea3afa3b53ef409e3ca0f6da3d20d16b032 (patch)
treec266a5f8711724f68f657ea54196c1395a94ceef /src/watch_command.sh
parentfeat(x): implement social flag for mal (diff)
downloadkaguya-39f48ea3afa3b53ef409e3ca0f6da3d20d16b032.tar.xz
kaguya-39f48ea3afa3b53ef409e3ca0f6da3d20d16b032.zip
fix: shellcheck lints
Diffstat (limited to 'src/watch_command.sh')
-rw-r--r--src/watch_command.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/watch_command.sh b/src/watch_command.sh
index 9fd039d..137bb0f 100644
--- a/src/watch_command.sh
+++ b/src/watch_command.sh
@@ -1,5 +1,5 @@
-if [ -n "${args[--dub]}" ]; then
- ani-cli --dub "$(array_to_string "${args[search]}")"
+if [[ -n "${args[--dub]}" ]]; then
+ ani-cli --dub "$(array_to_string "${args[search]}" || true)"
else
- ani-cli "$(array_to_string "${args[search]}")"
+ ani-cli "$(array_to_string "${args[search]}" || true)"
fi