Minor performance improvements (#975)
* Skip head and grep and do it all in sed * Replace echo and awk with a parameter expansion
This commit is contained in:
1 parent
661c9f53db
commit
1df8bcd8fe
2 files changed
+2
-2
No files matched your search
@@ -7,7 +7,7 @@ queuefile="${XDG_DATA_HOME:-$HOME/.local/share}/newsboat/queue"
|
||||
|
||||
while read -r line; do
|
||||
[ -z "$line" ] && continue
|
||||
url="$(echo "$line" | awk '{print $1}')"
|
||||
url="${line%%[ ]*}"
|
||||
qndl "$url" "curl -LO"
|
||||
done < "$queuefile"
|
||||
|
||||
|
||||
Reference in new issue
Block a user