aboutsummaryrefslogtreecommitdiff
path: root/scripts/vidrm
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-23 12:29:44 -0300
committerEuAndreh <eu@euandre.org>2021-01-23 12:29:44 -0300
commit880f6cc9797ef1c2dc5770bc06406ff0e987eefb (patch)
treea6ba8061fc9f43bb367cf0087c7fec0f9b508594 /scripts/vidrm
parents/vlc/vid/g (diff)
downloaddotfiles-880f6cc9797ef1c2dc5770bc06406ff0e987eefb.tar.gz
dotfiles-880f6cc9797ef1c2dc5770bc06406ff0e987eefb.tar.xz
ShellCheck
Diffstat (limited to 'scripts/vidrm')
-rwxr-xr-xscripts/vidrm4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vidrm b/scripts/vidrm
index a9c1cc7c..dbdc6d49 100755
--- a/scripts/vidrm
+++ b/scripts/vidrm
@@ -6,10 +6,10 @@ DB="$HOME/archive/vid/metadata-database.txt"
LIST="$(mktemp)"
touch "$DB"
-for url in $(cat "$QUEUE"); do
+while IFS='' read -r url; do
MATCH="$(grep -F "$url" "$DB" || echo "$url")"
echo "$MATCH" >> "$LIST"
-done
+done < "$QUEUE"
file_and_stuff="$(fzf < "$LIST")"