Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
jmini committed May 23, 2018
1 parent 39dd9ba commit 06e1a14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/ensure-up-to-date
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# this bash script run the scripts for the 'mature' generators
# it ensures that all changes are commited into the 'samples/' folder

echo "# START SCRIPT: $SCRIPT"
echo "# START SCRIPT: $0"

echo "IMPORTANT: this script should be run by the CI (e.g. Shippable) to ensure that the 'samples/' folder is up to date."
echo "Please press CTRL+C to stop or the script will continue in 5 seconds."
Expand All @@ -13,7 +13,7 @@ sleep 5
./bin/ruby-petstore.sh

# Check:
if ! `git diff-index --quiet HEAD -- `; then
if [ -n "$(git status --porcelain)" ]; then
echo "UNCOMMITTED CHANGES ERROR"
echo "There are uncommitted changes in working tree after execution of 'bin/ensure-up-to-date'"
git status
Expand Down

0 comments on commit 06e1a14

Please sign in to comment.