nix-portable icon indicating copy to clipboard operation
nix-portable copied to clipboard

refactor: move runtimeScript to separate file

Open milahu opened this issue 3 years ago • 1 comments

move runtimeScript to separate file

why?

  • make the bash script easier to read
  • avoid escaping

how?

also avoid the "escape + echo" pattern

    echo "${runtimeScriptEscaped}" > $out/bin/nix-portable.zip

by using temporary files

just my 2 cents. nice tool!

milahu avatar Mar 10 '22 11:03 milahu

Sounds like a good idea. A PR implementing this change would be welcome.

DavHau avatar Mar 10 '22 11:03 DavHau