Skip to content

Commit

Permalink
Fix .travis.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Gael Chamoulaud <[email protected]>
  • Loading branch information
strider committed Dec 8, 2014
1 parent 53880bc commit 1b13e90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -ev
MODS="$(git diff HEAD~1 Puppetfile | grep ^+ -B2 | grep mod | cut -d"'" -f2)"
MODS="$(git diff HEAD~1 Puppetfile | grep "^+" -B2 | grep mod | cut -d"'" -f2)"
rake validate_puppetfile SPEC_OPTS='--format documentation --color --backtrace' || exit 1
if [ "${MODS}" != "" ]; then
for module in ${MODS}; do
Expand All @@ -12,7 +12,7 @@ if [ "${MODS}" != "" ]; then
fi
done
else
echo "No changed module detected. You have to manually check whether this is OK."
echo "No changed module detected!"
git diff HEAD~1 Puppetfile
exit 1
exit 0
fi
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ notifications:
- "Change view : %{compare_url}"
- "Build details : %{build_url}"
channels:
- "irc.freenode.net#packstack-dev"
- "chat.freenode.net#packstack-dev"
on_success: always
on_failure: always
use_notice: true
Expand Down

0 comments on commit 1b13e90

Please sign in to comment.