From f60a377b5d01dfff42e512daa11c7a003eb1f22e Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Fri, 24 Feb 2017 13:11:56 -0500 Subject: make the hook for windows work --- rebar.config | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rebar.config b/rebar.config index e76f04e..f9ce8ae 100644 --- a/rebar.config +++ b/rebar.config @@ -14,9 +14,11 @@ {post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)", escriptize, - "cp $REBAR_BUILD_DIR/bin/rebar3 ./rebar3"}, + "cp \"$REBAR_BUILD_DIR/bin/rebar3\" ./rebar3"}, {"win32", - "robocopy $REBAR_BUILD_DIR/bin/ ./ rebar3*"} + escriptize, + "robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ rebar3* " + "/njs /njh /nfl /ndl & exit /b 0"} % silence things ]}. {escript_name, rebar3}. -- cgit v1.1