Skip to content

Commit

Permalink
fix before/after check for check-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmazza committed May 27, 2024
1 parent 8e4e4d6 commit 8a21f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/check-updates
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ set -e

test -f "$1" && spec="$1" || spec=$(./bin/download-spec)

current=$(cat lib/**/*.rb | md5sum | awk '{print $1}')
current=$(cat .openapi-generator/FILES | xargs cat | md5sum | awk '{print $1}')

./bin/generate "$spec"

changed=$(cat lib/**/*.rb | md5sum | awk '{print $1}')
changed=$(cat .openapi-generator/FILES | xargs cat | md5sum | awk '{print $1}')

if [[ "$current" == "$changed" ]]; then
echo "Generated code hasn't changed"
Expand Down

0 comments on commit 8a21f81

Please sign in to comment.