Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix pre-commit script's use of ==.

  • Loading branch information...
commit efcab81d75590069b8b55a6aa6eb3b3cd1f66d81 1 parent bef5130
alexrp authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 pre-commit.posix
View
6 pre-commit.posix
@@ -21,14 +21,14 @@ for dir in `find . -maxdepth 1 -type d | grep -v "\.$" | grep -v "\./\." | sed "
break;
fi;
- if [ $file == $dir/README.md ]; then
+ if [ $file = $dir/README.md ]; then
run_validator markdown $dir;
- elif [ $file == $dir/Metadata.xml ]; then
+ elif [ $file = $dir/Metadata.xml ]; then
run_validator metadata $dir;
elif [ `echo $file | grep "^$dir\/Screenshots\/"` ]; then
run_validator screenshot $dir;
else
- if [ $build_done == "false" ]; then
+ if [ $build_done = "false" ]; then
run_validator build $dir mdtool-build;
build_done="true"
fi;
Please sign in to comment.
Something went wrong with that request. Please try again.