Skip to content

Commit 7e785a6

Browse files
author
Brennon York
committed
added silent and quiet flags to curl and wget respectively, added single echo output to denote start of a download if download is needed
1 parent 14a5da0 commit 7e785a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build/mvn

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ install_app() {
1818
# check if we have curl installed
1919
# download application
2020
[ ! -f "${local_tarball}" ] && [ -n "`which curl 2>/dev/null`" ] && \
21-
curl "${remote_tarball}" > "${local_tarball}"
21+
echo "exec: curl -s ${remote_tarball}" && \
22+
curl -s "${remote_tarball}" > "${local_tarball}"
2223
# if the file still doesn't exist, lets try `wget` and cross our fingers
2324
[ ! -f "${local_tarball}" ] && [ -n "`which wget 2>/dev/null`" ] && \
24-
wget -O "${local_tarball}" "${remote_tarball}"
25+
echo "exec: wget --quiet ${remote_tarball}" && \
26+
wget --quiet -O "${local_tarball}" "${remote_tarball}"
2527
# if both were unsuccessful, exit
2628
[ ! -f "${local_tarball}" ] && \
2729
echo -n "ERROR: Cannot download $2 with cURL or wget; " && \

0 commit comments

Comments
 (0)