Commit e7979615 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: fix quiet mode

parent c91589cf
...@@ -39,6 +39,7 @@ fatal() ...@@ -39,6 +39,7 @@ fatal()
info() info()
{ {
[ -n "$quiet" ] && return
echo "$*" >&2 echo "$*" >&2
} }
...@@ -280,6 +281,7 @@ download_with_mirroring() ...@@ -280,6 +281,7 @@ download_with_mirroring()
check_tty check_tty
quiet=''
verbose='' verbose=''
WGETNOSSLCHECK='' WGETNOSSLCHECK=''
CURLNOSSLCHECK='' CURLNOSSLCHECK=''
...@@ -310,6 +312,7 @@ set_quiet() ...@@ -310,6 +312,7 @@ set_quiet()
{ {
WGETQ='-q' WGETQ='-q'
CURLQ='-s' CURLQ='-s'
quiet=1
} }
...@@ -584,6 +587,7 @@ fi ...@@ -584,6 +587,7 @@ fi
# detect if we run with ipfs:// or with auto # detect if we run with ipfs:// or with auto
if is_ipfsurl "$1" && [ -z "$ipfs_mode" ] || [ "$ipfs_mode" = "auto" ] ; then if is_ipfsurl "$1" && [ -z "$ipfs_mode" ] || [ "$ipfs_mode" = "auto" ] ; then
info "Autodetecting for available IPFS relay..."
select_ipfs_mode select_ipfs_mode
info "Auto selected IPFS mode: $ipfs_mode" info "Auto selected IPFS mode: $ipfs_mode"
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment