summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 &&