Skip to content
Permalink
Browse files

Fix for Mac sed error in prepare script

  • Loading branch information
dakcarto committed Jul 29, 2012
1 parent 8c2a0b0 commit c9d822470f7f6ce316a78cce036f6a907fe8a119
Showing with 9 additions and 1 deletion.
  1. +9 −1 scripts/prepare-commit.sh
@@ -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

0 comments on commit c9d8224

Please sign in to comment.
You can’t perform that action at this time.