From c0c6a76b3f4a29094a166c63df4ee698e39ce7d8 Mon Sep 17 00:00:00 2001 From: topazrn <40129033+topazrn@users.noreply.github.com> Date: Wed, 29 Jan 2025 18:52:24 +1100 Subject: [PATCH] chore: comply to sh-checker --- ani-cli | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ani-cli b/ani-cli index 04b44cf9..261c7f3e 100755 --- a/ani-cli +++ b/ani-cli @@ -275,8 +275,7 @@ download() { play_episode() { [ "$log_episode" = 1 ] && [ "$player_function" != "debug" ] && [ "$player_function" != "download" ] && command -v logger >/dev/null && logger -t ani-cli "${allanime_title}${ep_no}" skip_flag="$(ani-skip -q "$mal_id" -e "$ep_no")" - skip_flag_arr=($skip_flag) - [ "$skip_intro" = 0 ] && skip_flag=${skip_flag_arr[0]} + [ "$skip_intro" = 0 ] && skip_flag=$(echo $skip_flag | cut -d ' ' -f 1) [ -z "$episode" ] && get_episode_url # shellcheck disable=SC2086 case "$player_function" in