Skip to content

Commit 1dc6c9c

Browse files
committedJun 12, 2014
deploy.sh: Use -n not -z, [[ ]], and --porcelain
1 parent 298d824 commit 1dc6c9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tools/deploy-to-svn.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if [ -z $( git tag | grep "^$TAG$" ) ]; then
1919
fi
2020

2121
# Make sure we don't have uncommitted changes.
22-
if [ -z $( git status -s ) ]; then
22+
if [[ -n $( git status -s --porcelain ) ]]; then
2323
echo "Uncommitted changes found."
2424
echo "Please deal with them and try again clean."
2525
exit 1

0 commit comments

Comments
 (0)
Please sign in to comment.