summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/makefile b/makefile
index d07c25c0c..b8b7a449f 100644
--- a/makefile
+++ b/makefile
@@ -109,7 +109,8 @@ install:
@cp $(xmake_core) $(xmake_core_install)
@chmod 777 $(xmake_core_install)
@# install the xrepo bin file
- @echo -e "#!/usr/bin/env sh\n$(xmake_core_install) lua private.xrepo \""'$$@"' > $(xrepo_bin_install)
+ @echo '#!/usr/bin/env sh' > $(xrepo_bin_install)
+ @echo '$(xmake_core_install) lua private.xrepo "$$@"' >> $(xrepo_bin_install)
@chmod 777 $(xrepo_bin_install)
@# remove xmake.out
@if [ -f "$(TMP_DIR)/xmake.out" ]; then rm $(TMP_DIR)/xmake.out; fi