File tree 1 file changed +3
-15
lines changed
1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -e
4
+
3
5
RED=" \e[31m"
4
6
GREEN=" \e[32m"
5
7
ENDCOLOR=" \e[0m"
53
55
echoGreen " All good, let's start with CBlite $version :-)"
54
56
fi
55
57
56
- declare -i errors=0
57
- function checkErrors() {
58
- if [ ${errors} -ne 0 ]
59
- then
60
- >&2 echoRed " Failed at the following step: $1 "
61
- exit 1
62
- fi
63
- }
64
-
65
58
tmpFolder=$( mktemp -d)
66
59
echo " Temporary directory ${tmpFolder} "
67
60
@@ -89,11 +82,7 @@ function download() {
89
82
local url=" https://packages.couchbase.com/releases/couchbase-lite-c/${version} /couchbase-lite-c-enterprise-${version} -${suffix} "
90
83
local file=" ${tmpDownloadFolder} /${suffix} "
91
84
92
- if ! wget --quiet --show-progress --output-document " ${file} " " ${url} "
93
- then
94
- >&2 echo " Unable to download '${url} '."
95
- errors+=1
96
- fi
85
+ wget --quiet --show-progress --output-document " ${file} " " ${url} "
97
86
}
98
87
99
88
for platform in " ${! platforms[@]} "
104
93
download $fileName
105
94
done
106
95
107
- checkErrors " Download packages"
108
96
echoGreen " Downloading successful"
109
97
110
98
# ############## #
You can’t perform that action at this time.
0 commit comments