Skip to content

Commit

Permalink
dev: Use an affirmative conditional (#174)
Browse files Browse the repository at this point in the history
...and avoid regex in match.

(Try a gem list ails vs a gem list --exact ails to see what I mean.)
  • Loading branch information
olleolleolle authored Jan 5, 2024
1 parent 053cbd3 commit ddebd51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh

if ! gem list foreman -i --silent; then
if gem list --no-installed --exact --silent foreman; then
echo "Installing foreman..."
gem install foreman
fi
Expand Down

0 comments on commit ddebd51

Please sign in to comment.