aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash/youtube.sh3
-rwxr-xr-xscripts/atom.sh2
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"