api: wget(): suppress command -v output

pull/734/merge
Botspot 4 years ago
parent 56be20d404
commit ed31cd9531

2
api

@ -500,7 +500,7 @@ wget() { #this function intercepts all wget commands being used in app scripts.
local file=''
local url=''
local use=aria2c
if command -v aria2c; then
if command -v aria2c >/dev/null; then
#convert wget arguments to newline-separated list
local IFS=$'\n'
local opts="$(IFS=$'\n'; echo "$*")"

Loading…
Cancel
Save