Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update-modules.sh should use same path for file check and copy #80

Open
viewmagic-chris opened this issue Sep 27, 2023 · 0 comments
Open

Comments

@viewmagic-chris
Copy link

if [ -f "${relative}" ]; then

Should probably read:

    # Look through nearly every file in the cmake-modules repo, but don't copy this file to your project!
    (cd $MODULES_DIR && git ls-files | grep -v "update-modules") | while read -r relative; do
        if [ -f "${MODULES_DIR}/${relative}" ]; then
            echo "${relative}"
            cp "${MODULES_DIR}/${relative}" .
        fi
    done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant