We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b620844 + 337e90c commit d60716bCopy full SHA for d60716b
functions.sh
@@ -122,7 +122,7 @@ function network_sanity_check {
122
echo "Performing network sanity check..."
123
PIP_CONFIG_FILE=/etc/pip.conf
124
if [[ -f $PIP_CONFIG_FILE ]]; then
125
- line=$(cat $PIP_CONFIG_FILE|grep index-url)
+ line=$(cat $PIP_CONFIG_FILE|grep --max-count 1 index-url)
126
pypi_url=${line#*=}
127
pypi_host=$(echo $pypi_url|grep -Po '.*?//\K.*?(?=/)')
128
0 commit comments