summaryrefslogtreecommitdiff
path: root/vid_sload
diff options
context:
space:
mode:
authornikolaus <nikolaus@fishbox.fritz.box>2022-09-12 14:58:55 +0200
committernikolaus <nikolaus@fishbox.fritz.box>2022-09-12 14:58:55 +0200
commit966089580de616b225b7ca4afa11dedfd3f5f17a (patch)
treed573ae96535e0c9d35d91c3ac098a6c7a84c13ae /vid_sload
parentec462124d1f9ca8458e9ab26c5a1076220afebf0 (diff)
Bug fix of vid_sload program.
Diffstat (limited to 'vid_sload')
-rwxr-xr-xvid_sload6
1 files changed, 3 insertions, 3 deletions
diff --git a/vid_sload b/vid_sload
index a0cb42a..ff69aed 100755
--- a/vid_sload
+++ b/vid_sload
@@ -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 &&