diff --git a/tools/deploy.sh b/tools/deploy.sh index 7a93e73..17a490a 100755 --- a/tools/deploy.sh +++ b/tools/deploy.sh @@ -16,7 +16,8 @@ init() { fi # Gemfile could be changed by `bundle install` in actions workflow - if [[ -n $(git status Gemfile.lock --porcelain) ]]; then + if [[ -n $(git ls-files | grep Gemfile.lock) && -n \ + $(git status Gemfile.lock --porcelain) ]]; then git checkout -- Gemfile.lock fi