Skip to content

Instantly share code, notes, and snippets.

@nbargnesi
Created August 27, 2013 18:54
Show Gist options
  • Save nbargnesi/6357526 to your computer and use it in GitHub Desktop.
Save nbargnesi/6357526 to your computer and use it in GitHub Desktop.
mongo-hacker Makefile patch for quoting source path in ln command
diff --git a/Makefile b/Makefile
index 7e327d2..8b229e0 100644
--- a/Makefile
+++ b/Makefile
@@ -10,4 +10,4 @@ mongo_hacker.js: ${base} ${config} ${hacks}
install:
@echo "INSTALLATION"
@echo "Linking MongoHacker to .mongorc.js in your home directory:"
- rm -f ~/.mongorc.js && ln -sf $(CURDIR)/mongo_hacker.js ~/.mongorc.js
+ rm -f ~/.mongorc.js && ln -sf "$(CURDIR)/mongo_hacker.js" ~/.mongorc.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment