Author: chaoflow
Date: Wed Jun 22 23:33:41 2011
New Revision: 27531
URL: https://svn.nixos.org/websvn/nix/?rev=27531&sc=1

Log:
fetchgit builder - correctly quote "$rev"

Modified:
   nixpkgs/trunk/pkgs/build-support/fetchgit/builder.sh

Modified: nixpkgs/trunk/pkgs/build-support/fetchgit/builder.sh
==============================================================================
--- nixpkgs/trunk/pkgs/build-support/fetchgit/builder.sh        Wed Jun 22 
22:27:42 2011        (r27530)
+++ nixpkgs/trunk/pkgs/build-support/fetchgit/builder.sh        Wed Jun 22 
23:33:41 2011        (r27531)
@@ -11,7 +11,7 @@
 git remote add origin "$url"
 git fetch --progress origin
 git remote set-head origin -a || (
-    test -n $rev && echo "that's ok, we want $rev" || exit 1)
+    test -n "$rev" && echo "that's ok, we want $rev" || exit 1)
 
 if test -n "$rev"; then
     echo "Trying to checkout: $rev"
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to