diff options
| author | EuAndreh <eu@euandre.org> | 2021-01-23 12:29:44 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2021-01-23 12:29:44 -0300 |
| commit | 880f6cc9797ef1c2dc5770bc06406ff0e987eefb (patch) | |
| tree | a6ba8061fc9f43bb367cf0087c7fec0f9b508594 /scripts/vidrm | |
| parent | s/vlc/vid/g (diff) | |
| download | dotfiles-880f6cc9797ef1c2dc5770bc06406ff0e987eefb.tar.gz dotfiles-880f6cc9797ef1c2dc5770bc06406ff0e987eefb.tar.xz | |
ShellCheck
Diffstat (limited to '')
| -rwxr-xr-x | scripts/vidrm | 4 |
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")" |
