Skip to content

Commit

Permalink
Fix pre-commit script's use of ==.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Feb 20, 2012
1 parent bef5130 commit efcab81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pre-commit.posix
Expand Up @@ -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;
Expand Down

0 comments on commit efcab81

Please sign in to comment.