Skip to content

Commit 1a2a144

Browse files
committed
Add code to use curl if wget is not installed
Signed-off-by: Chin Yeung Li <tli@nexb.com>
1 parent c41196a commit 1a2a144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ create_virtualenv() {
127127
VIRTUALENV_PYZ="$CFG_ROOT_DIR/etc/thirdparty/virtualenv.pyz"
128128
else
129129
VIRTUALENV_PYZ="$CFG_ROOT_DIR/$VENV_DIR/virtualenv.pyz"
130-
wget -O "$VIRTUALENV_PYZ" "$VIRTUALENV_PYZ_URL"
130+
wget -O "$VIRTUALENV_PYZ" "$VIRTUALENV_PYZ_URL" 2>/dev/null || curl -o "$VIRTUALENV_PYZ" "$VIRTUALENV_PYZ_URL"
131131
fi
132132

133133
$PYTHON_EXECUTABLE "$VIRTUALENV_PYZ" \

0 commit comments

Comments
 (0)