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

Add packcheck-remote to work with remote repositories directly #36

Merged
merged 2 commits into from
May 26, 2021

Conversation

adithyaov
Copy link
Member

No description provided.

Copy link
Member

@harendra-kumar harendra-kumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run shellcheck on the script and fix any warnings/errors.

@adithyaov adithyaov requested a review from harendra-kumar May 26, 2021 06:18
@adithyaov
Copy link
Member Author

See #37 and #38

echo "Running ${PACKCHECK_DIR}/packcheck.sh with clean environment and CHECK_ENV on..."
echo "No environment variables are honored, you have to specifiy ALL the"
echo "parameters explicitly on the command line, including PATH."
echo

/usr/bin/env -i CHECK_ENV=y $(dirname $0)/packcheck.sh $*
PACKCHECK_CLI_OPTS_ARR=("$@")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just quoting $* should work here e.g. /usr/bin/env -i CHECK_ENV=y $(dirname $0)/packcheck.sh "$*"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not work. a="b c d" would become a=b c d.

esac
done

try_git_clone_and_merge "$REMOTE" "$CHECKOUT" "$MERGE" "$DIRECTORY" "$FORCE" "$PACKCHECK_CLI_OPTS"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just pass "$*" instead of processing $@?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not work. a="b c d" would become a=b c d.

@adithyaov adithyaov merged commit 537bc9d into master May 26, 2021
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

Successfully merging this pull request may close these issues.

2 participants