We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f42d551 commit 7cba3c0Copy full SHA for 7cba3c0
sheath
@@ -43,14 +43,14 @@ function make_package() {
43
SRC_URL="${SRC[$i]}"
44
fi
45
46
- if ! curl --head --output /dev/null --silent --fail ${SRC_URL};
47
- then
48
- if [[ -f "${PKGSCRIPTDIR}/${SRC_URL}" ]]; then
49
- echo "=== Using local file ${PKGSCRIPTDIR}/${SRC_URL} ==="
50
- cp -r "${PKGSCRIPTDIR}/${SRC_URL}" "${WORKDIR}"
51
52
- continue
53
- else
+ if [[ -f "${PKGSCRIPTDIR}/${SRC_URL}" ]]; then
+ echo "=== Using local file ${PKGSCRIPTDIR}/${SRC_URL} ==="
+ cp -r "${PKGSCRIPTDIR}/${SRC_URL}" "${WORKDIR}"
+ continue
+ else
+ if ! curl --head --output /dev/null --silent --fail ${SRC_URL};
+ then
54
echo "=== Invalid URL/Path! ==="
55
exit 1
56
0 commit comments