diff options
-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 && |