diff options
author | nikolaus <nikolaus@fishbox.fritz.box> | 2022-09-12 14:58:55 +0200 |
---|---|---|
committer | nikolaus <nikolaus@fishbox.fritz.box> | 2022-09-12 14:58:55 +0200 |
commit | 966089580de616b225b7ca4afa11dedfd3f5f17a (patch) | |
tree | d573ae96535e0c9d35d91c3ac098a6c7a84c13ae /vid_sload | |
parent | ec462124d1f9ca8458e9ab26c5a1076220afebf0 (diff) |
Bug fix of vid_sload program.
Diffstat (limited to 'vid_sload')
-rwxr-xr-x | vid_sload | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -14,9 +14,9 @@ vidselect() { num=1 for line in $(cat ~/.cache/view_hist) do - (echo "$line" | grep -E $dl_links && - printf '[X] %s\n' "$line" || - printf '[%s] %s\n' "$num" "$line") >> ~/.cache/vid_sload/list + (echo "$line" | grep -q -E $dl_links && + printf '[X] %s\n' "$line" || + printf '[%s] %s\n' "$num" "$line") >> ~/.cache/vid_sload/list num=$((( $num+1 ))) done && cat ~/.cache/vid_sload/list && |