From 966089580de616b225b7ca4afa11dedfd3f5f17a Mon Sep 17 00:00:00 2001 From: nikolaus Date: Mon, 12 Sep 2022 14:58:55 +0200 Subject: Bug fix of vid_sload program. --- vid_sload | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vid_sload') 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 && -- cgit v1.2.1