From c2f100d9403d439b6848688b376384d02615967f Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 8 Nov 2023 00:04:26 -0700 Subject: [PATCH] feat(bootstrap): show curl/wget command on error --- _webi/curl-pipe-bootstrap.tpl.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_webi/curl-pipe-bootstrap.tpl.sh b/_webi/curl-pipe-bootstrap.tpl.sh index 0fa7b39..9cbac2e 100644 --- a/_webi/curl-pipe-bootstrap.tpl.sh +++ b/_webi/curl-pipe-bootstrap.tpl.sh @@ -107,6 +107,8 @@ fn_wget() { ( if ! $cmd_wget "${b_agent}" -c "${a_url}" -O "${a_path}"; then echo >&2 " $(t_err "failed to download (wget)") '$(t_url "${a_url}")'" + echo >&2 " $cmd_wget '${b_agent}' -c '${a_url}' -O '${a_path}'" + echo >&2 " $(wget -V)" return 1 fi ); } @@ -130,6 +132,8 @@ fn_curl() { ( if ! $cmd_curl -A "${b_agent}" "${a_url}" -o "${a_path}"; then echo >&2 " $(t_err "failed to download (curl)") '$(t_url "${a_url}")'" + echo >&2 " $cmd_curl -A '${b_agent}' '${a_url}' -o '${a_path}'" + echo >&2 " $(curl -V)" return 1 fi ); }