DavHau / nix-portable

Nix - Static, Permissionless, Installation-free, Pre-configured
MIT License
788 stars 29 forks source link

Don't exit when bind mounting `/etc/ssl` #34

Closed rrbutani closed 2 years ago

rrbutani commented 2 years ago

When nix-portable falls back to using /etc/ssl it sets $sslBind to a single path instead of a from/to pair.

When processing this bind, makeBindArgs, expecting pairs, unconditionally calls shift twice causing the script to exit with no error message (since set -e is specificed).

This PR sets sslBind to /etc/ssl /etc/ssl in this case and has makeBindArgs print out an error.