File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ __rfc() {
2424 local NO_CURL_WGET=4
2525
2626 # URLs
27- local RFCS_TGZ_BASE_FTP =' https://ftp.rfc-editor.org/in-notes/tar/'
27+ local RFCS_TGZ_BASEURL =' https://ftp.rfc-editor.org/in-notes/tar/'
2828 local RFC_REMOTE_URL=' https://raw.github.com/bfontaine/rfc/master/rfc'
2929 local REPO_HOME=' https://github.com/bfontaine/rfc'
3030 local RFCS_BASEURL=' https://www.rfc-editor.org/rfc/'
@@ -61,13 +61,13 @@ __rfc() {
6161 # $1 pattern of the file
6262 case $fetch_cmd in
6363 curl)
64- curl -sl " $RFCS_TGZ_BASE_FTP " | grep $1 ;
64+ curl -sl " $RFCS_TGZ_BASEURL " | grep $1 ;
6565 case " $? " in
6666 6|7) return $NETWORK_ERROR ;;
6767 22) return $NOT_FOUND ;;
6868 esac ;;
6969 wget)
70- wget -q --no-remove-listing " $RFCS_TGZ_BASE_FTP " -O/dev/null
70+ wget -q --no-remove-listing " $RFCS_TGZ_BASEURL " -O/dev/null
7171 case " $? " in
7272 4) return $NETWORK_ERROR ;;
7373 8) return $NOT_FOUND ;;
@@ -126,7 +126,7 @@ __rfc() {
126126 esac
127127
128128 mkdir -p " $rfc_dir /_tmp"
129- fetch_url " $RFCS_TGZ_BASE_FTP $name " " $rfc_dir /_tmp/$name "
129+ fetch_url " $RFCS_TGZ_BASEURL $name " " $rfc_dir /_tmp/$name "
130130 [ " $? " -ne " 0" ] && exit $NETWORK_ERROR
131131 cd " $rfc_dir /_tmp"
132132 tar -xzf $name
You can’t perform that action at this time.
0 commit comments