Skip to content

fix(scripts): fix URL loop iteration, command detection, and quoting in download.sh - #886

Open
aoright wants to merge 1 commit into
papers-we-love:mainfrom
aoright:fix/download-script-bugs-and-shellcheck
Open

fix(scripts): fix URL loop iteration, command detection, and quoting in download.sh#886
aoright wants to merge 1 commit into
papers-we-love:mainfrom
aoright:fix/download-script-bugs-and-shellcheck

Conversation

@aoright

@aoright aoright commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix SC2066 bug where for url in "$urls"; do quoted the entire multiline string so the download loop only executed once with all URLs merged into a single invalid argument.
  • Replace deprecated which and egrep with standard command -v and grep -E.
  • Fix redundant ls | cat *.md pipe and properly quote path variables ("$1", "$f", "$dir", "$REPO_ROOT_DIR").
  • Resolves all ShellCheck warnings and errors.

…in download.sh

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant