-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
There was a problem hiding this 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.
689a2c6
to
9d20740
Compare
9d20740
to
ae46ab3
Compare
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=("$@") |
There was a problem hiding this comment.
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 "$*"
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 $@
?
There was a problem hiding this comment.
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
.
No description provided.