diff --git a/tools/distrib/build_ruby_environment_macos.sh b/tools/distrib/build_ruby_environment_macos.sh
index b6dec68c7fc70fe416decf15203c6fbc24b6ace3..317c2721c27c7d5118ea09b555a6e91b28685d4d 100644
--- a/tools/distrib/build_ruby_environment_macos.sh
+++ b/tools/distrib/build_ruby_environment_macos.sh
@@ -56,4 +56,4 @@ for v in 2.3.0 2.2.2 2.1.5 2.0.0-p645 ; do
 done
 
 sed 's/x86_64-darwin-11/universal-darwin/' ~/.rake-compiler/config.yml > $CROSS_RUBY
-mv $CROSS_RUBY > ~/.rake-compiler/config.yml
+mv $CROSS_RUBY ~/.rake-compiler/config.yml