Skip to content

Commit

Permalink
refactor(bin/checkout_lastest_docs.sh): prevent globbing (#372)
Browse files Browse the repository at this point in the history
I've run: `shellcheck bin/checkout_latest_docs.sh`;

Yhe output was:
`In bin/checkout_latest_docs.sh line 13:
        (cd resources/docs/$v && git pull)
                           ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean:
        (cd resources/docs/"$v" && git pull)

For more information:
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
`
  • Loading branch information
atefBB authored Nov 25, 2024
1 parent 7497851 commit d7f939f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/checkout_latest_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ DOCS_VERSIONS=(
for v in "${DOCS_VERSIONS[@]}"; do
if [ -d "resources/docs/$v" ]; then
echo "Pulling latest documentation updates for $v..."
(cd resources/docs/$v && git pull)
(cd resources/docs/"$v" && git pull)
else
echo "Cloning $v..."
git clone --depth 1 --single-branch --branch "$v" https://github.com/laravel/docs "resources/docs/$v"
Expand Down

0 comments on commit d7f939f

Please sign in to comment.