From 5833c10fc290751880978ed8f7bf048ebb0e7021 Mon Sep 17 00:00:00 2001 From: Rahul Butani Date: Tue, 15 Feb 2022 15:56:58 -0600 Subject: [PATCH 1/2] don't exit when bind mounting /etc/ssl --- default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 26733d9..cba433f 100644 --- a/default.nix +++ b/default.nix @@ -212,7 +212,7 @@ let sslBind="\$(realpath \$SSL_CERT_FILE) \$dir/ca-bundle.crt" export SSL_CERT_FILE="\$dir/ca-bundle.crt" else - sslBind=/etc/ssl + sslBind="/etc/ssl /etc/ssl" fi @@ -293,7 +293,7 @@ let while :; do if [ -n "\$1" ]; then from="\$1"; shift - to="\$1"; shift + to="\$1"; shift || { echo "no bind destination provided for \$from!"; exit 3; } binds="\$binds \$arg \$from\$sep\$to"; else break From e984595e9ae2a50ca5780dad2e8d32756bedb6a8 Mon Sep 17 00:00:00 2001 From: Rahul Butani Date: Wed, 16 Feb 2022 09:46:47 -0800 Subject: [PATCH 2/2] fix a typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d5f44a5..92362e5 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ In case the automatically selected runtime doesn't work, use the follwing enviro ### Environment Variables The following environment variables are optional and can be used to override the default behaviour of nix-portable ``` -NP_DEBUG (1 = debug msgs; 2 = 'set -e' for nix-portable) +NP_DEBUG (1 = debug msgs; 2 = 'set -x' for nix-portable) NP_GIT specify path to the git executable NP_LOCATION where to put the `.nix-portable` dir. (defaults to `$HOME`) NP_RUNTIME which runtime to use (must be 'bwrap' or 'proot')