Skip to content

Commit

Permalink
Handle spellr no ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
robotdana committed Jan 24, 2024
1 parent 269ddbc commit 35169e2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/git_autolint_spellr
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

if [[ -f .spellr.yml ]]; then
echodo be spellr -i $(git_modified_head) && on_dirty "$@";
fi
if [[ -f .spellr.yml ]]; then
if [[ -f Gemfile ]]; then
echodo be spellr -i $(git_modified_head) && on_dirty "$@";
else
echodo docker run -it -v $PWD:/app robotdana/spellr -i $(git_modified_head) && on_dirty "$@";
fi
fi

0 comments on commit 35169e2

Please sign in to comment.