From 84ef92c909868f09b8f3d89621eb03e981250a2a Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 7 Apr 2019 18:43:11 -0300 Subject: Fix shellcheck warnings. --- bash/youtube.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bash') diff --git a/bash/youtube.sh b/bash/youtube.sh index fe22169..275e0b8 100644 --- a/bash/youtube.sh +++ b/bash/youtube.sh @@ -46,7 +46,8 @@ inc_download() { local file="$HOME/.yt-db/$id" mkdir -p "$HOME/.yt-db" cat "$file" 2> /dev/null - local n_count="$(cat "$file" 2> /dev/null || printf 10)" + local n_count + n_count="$(cat "$file" 2> /dev/null || printf 10)" local n_count_new="$((n_count + step))" echo "$n_count_new" > "$file" -- cgit v1.2.3