Skip to content

Commit

Permalink
Fix for Mac sed error in prepare script
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Jul 29, 2012
1 parent 8c2a0b0 commit c9d8224
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/prepare-commit.sh
Expand Up @@ -20,7 +20,15 @@ set -e
if [ -d .svn ]; then
MODIFIED=$(svn status | sed -ne "s/^[MA] *//p")
elif [ -d .git ]; then
MODIFIED=$(git status | sed -rne "s/^# (modified|new file): *//p" | sort -u)
case $OSTYPE in
darwin*)
MODIFIED=$(git status | sed -Ene "s/^# (modified|new file): *//p" | sort -u)
;;
*)
MODIFIED=$(git status | sed -rne "s/^# (modified|new file): *//p" | sort -u)
;;
esac

else
echo No working copy
exit 1
Expand Down

0 comments on commit c9d8224

Please sign in to comment.