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

FIX Additional check dirs are not the same #3

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

emteknetnz
Copy link
Member

Issue silverstripe/silverstripe-elemental#985

Fixes No '.doclintrc' file found at /home/runner/work/silverstripe-userforms/silverstripe-userforms//home/runner/work/silverstripe-userforms/silverstripe-userforms https://github.com/silverstripe/silverstripe-userforms/actions/runs/8610141856/job/23595207034?pr=1278

bin/doclint Outdated
@@ -104,7 +104,7 @@ if [[ -z $MODULE_DIR ]]; then
fi

# If the module directory is not an absolute path, make it one
if [[ $MODULE_DIR != $ORIG ]] && [[ $MODULE_DIR != "/*" ]]; then
if [[ $MODULE_DIR != $ORIG ]] && [[ "$MODULE_DIR/" != $ORIG ]] && [[ $MODULE_DIR != "/*" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if [[ $MODULE_DIR != $ORIG ]] && [[ "$MODULE_DIR/" != $ORIG ]] && [[ $MODULE_DIR != "/*" ]]; then
if [[ $MODULE_DIR != $ORIG_DIR ]] && [[ "$MODULE_DIR/" != $ORIG_DIR ]] && [[ $MODULE_DIR != "/*" ]]; then

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

LGTM

@GuySartorelli GuySartorelli merged commit 98d0ecc into silverstripe:1.0 Apr 9, 2024
@GuySartorelli GuySartorelli deleted the pulls/1.0/slash branch April 9, 2024 04:34
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