From: John Benediktsson Date: Tue, 23 Feb 2021 16:59:01 +0000 (-0800) Subject: shell.nix: wrap $binary in quotes in case $root has spaces. X-Git-Tag: 0.99~2613 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=1928e6094ea644b24e511e5c21036729b017f98d shell.nix: wrap $binary in quotes in case $root has spaces. --- diff --git a/shell.nix b/shell.nix index 83c3743c9c..3ca255579c 100644 --- 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} \