diff options
author | EuAndreh <eu@euandre.org> | 2019-04-07 18:43:11 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-04-07 18:43:11 -0300 |
commit | 84ef92c909868f09b8f3d89621eb03e981250a2a (patch) | |
tree | e207b5aa9ea4f4c57818aa3679636012f3914f54 | |
parent | mrconfig.ini. (diff) | |
download | dotfiles-84ef92c909868f09b8f3d89621eb03e981250a2a.tar.gz dotfiles-84ef92c909868f09b8f3d89621eb03e981250a2a.tar.xz |
Fix shellcheck warnings.
-rw-r--r-- | bash/youtube.sh | 3 | ||||
-rwxr-xr-x | scripts/atom.sh | 2 |
2 files changed, 3 insertions, 2 deletions
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" diff --git a/scripts/atom.sh b/scripts/atom.sh index 4d09815..6ca4110 100755 --- a/scripts/atom.sh +++ b/scripts/atom.sh @@ -12,7 +12,7 @@ LINKS_OUT="$RSS_DIR/gen/buku.urls" mkdir -p "$RSS_DIR/gen" # Empty the text file -> "$LINKS_OUT" +true > "$LINKS_OUT" feed() { local tag="$1" |