]> gitweb.factorcode.org Git - factor.git/commitdiff
shell.nix: wrap $binary in quotes in case $root has spaces.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 23 Feb 2021 16:59:01 +0000 (08:59 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 23 Feb 2021 16:59:01 +0000 (08:59 -0800)
shell.nix

index 83c3743c9c95f1a3ad57b26cf4e3ff31a535c9b0..3ca255579c024c45a1ebbf1765690d1df94ac781 100644 (file)
--- a/shell.nix
+++ b/shell.nix
@@ -37,7 +37,7 @@ in
     local binary="''${root}/factor"
     local wrapped="''${root}/.factor-wrapped"
     # Remove the wrapped binary if a new VM has been compiled
-    ${lib.getBin file}/bin/file $binary |grep ELF >/dev/null && rm -f "$wrapped"
+    ${lib.getBin file}/bin/file "$binary" |grep ELF >/dev/null && rm -f "$wrapped"
     # Restore the factor binary if it was already wrapped
     [ -e "$wrapped" ] && { mv "$wrapped" "$binary" ; }
     wrapProgram "$binary" --prefix LD_LIBRARY_PATH : ${runtimeLibPath} \