Skip to content

Conversation

@gaelicWizard
Copy link
Contributor

@gaelicWizard gaelicWizard commented Oct 10, 2021

Description

Run shellcheck, shfmt, and then try to clean up a bit.

Motivation and Context

No behavior changes intended with one exception: source ~/.jekyllconfig is moved from main to the Jekyll plugin.

How Has This Been Tested?

Tested?

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • If my change requires a change to the documentation, I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • If I have added a new file, I also added it to clean_files.txt and formatted it using lint_clean_files.sh.
  • I have added tests to cover my changes, and all the new and existing tests pass.

@gaelicWizard gaelicWizard marked this pull request as ready for review October 10, 2021 08:15
@gaelicWizard gaelicWizard force-pushed the plugin-jekyll branch 4 times, most recently from 114c98a to 321aff6 Compare October 13, 2021 05:33
Copy link
Member

@NoahGorny NoahGorny left a comment

Choose a reason for hiding this comment

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

I always like cleanup PRs 😄

Use bashisms, remove suplerfous variable, use parameter default value replacement
If the user doesn't load the Jekyll plugin, then don't load any Jeykll stuff.
Alsö, use `pushd`/`popd` instead of `builtin cd`.

Alsö, SC2153
@gaelicWizard
Copy link
Contributor Author

Anything else needed for this PR?

@NoahGorny NoahGorny merged commit f534505 into Bash-it:master Jan 1, 2022
@gaelicWizard gaelicWizard deleted the plugin-jekyll branch January 1, 2022 21:56
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