File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9623,14 +9623,13 @@ wget_download() {
96239623 set \
96249624 -o verbose \
96259625 -o xtrace
9626- wget_server=" ${1-} "
96279626 command -v -- wget > /dev/null 2>&1 ||
96289627 return 127
96299628
96309629 # either the two files’ [targets] match
9631- test " $( command stat -L -c %d:%i -- " ${HOME%/ } " ' /Code/' " ${wget_server -} " ' /.https' ) " = " $( command stat -L -c %d:%i -- " ${HOME%/ } " ' /Sites/' " ${wget_server -} " ) " ||
9630+ test " $( command stat -L -c %d:%i -- " ${HOME%/ } " ' /Code/' " ${1 -} " ' /.https' ) " = " $( command stat -L -c %d:%i -- " ${HOME%/ } " ' /Sites/' " ${1 -} " ) " ||
96329631 # or we create that symlink
9633- ln -f -s " ${HOME%/ } " ' /Code/' " ${wget_server -} " ' /.https' " ${HOME%/ } " ' /Sites/' " ${wget_server -} " ||
9632+ ln -f -s " ${HOME%/ } " ' /Code/' " ${1 -} " ' /.https' " ${HOME%/ } " ' /Sites/' " ${1 -} " ||
96349633 # or we fail
96359634 return 11
96369635
@@ -9641,11 +9640,11 @@ wget_download() {
96419640 # https://web.archive.org/web/0id_/developers.google.com/search/blog/2019/10/updating-user-agent-of-googlebot#the-new-evergreen-googlebot-and-its-user-agent
96429641 command wget \
96439642 --adjust-extension \
9644- --append-output=" ${wget_server -} " ' .log' \
9643+ --append-output=" ${1 -} " ' .log' \
96459644 --continue \
96469645 --convert-links \
96479646 --debug \
9648- --directory-prefix=" ${HOME%/ } " ' /Sites/' " ${wget_server -} " \
9647+ --directory-prefix=" ${HOME%/ } " ' /Sites/' " ${1 -} " \
96499648 --domains=" $( printf -- ' %s' " ${1-} " | sed -e ' s/.*@//' -e ' s/https\{0,1\}:\/\///' -e ' s/www\.//' -e ' s/[:/].*//' ) " \
96509649 --execute robots=off \
96519650 --force-directories \
@@ -9666,9 +9665,8 @@ wget_download() {
96669665 --server-response \
96679666 --timestamping \
96689667 --user-agent=' Mozilla/5.0 (compatible; Googlebot/2.1; +https://www.google.com/bot.html)' \
9669- ' https://' " ${wget_server -} " ||
9668+ ' https://' " ${1 -} " ||
96709669 return 17
9671- unset wget_server > /dev/null 2>&1 || wget_server=' '
96729670 {
96739671 set \
96749672 +o verbose \
You can’t perform that action at this time.
0 commit comments