Skip to content

Commit 7cba3c0

Browse files
committed
Fix issues with local paths being resolved by cURL
1 parent f42d551 commit 7cba3c0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sheath

+7-7
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ function make_package() {
4343
SRC_URL="${SRC[$i]}"
4444
fi
4545

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}"
5146

52-
continue
53-
else
47+
if [[ -f "${PKGSCRIPTDIR}/${SRC_URL}" ]]; then
48+
echo "=== Using local file ${PKGSCRIPTDIR}/${SRC_URL} ==="
49+
cp -r "${PKGSCRIPTDIR}/${SRC_URL}" "${WORKDIR}"
50+
continue
51+
else
52+
if ! curl --head --output /dev/null --silent --fail ${SRC_URL};
53+
then
5454
echo "=== Invalid URL/Path! ==="
5555
exit 1
5656
fi

0 commit comments

Comments
 (0)