From 7c30831e8fb6449e5eaadc2a6bd5a24aff9bfd6e Mon Sep 17 00:00:00 2001 From: oxalica Date: Wed, 1 Jan 2020 10:26:37 +0800 Subject: [PATCH] home-manager: fix pass-through option passing This resolves, e.g., the errors occurring when passing empty arguments like `--option builders ''`. Closes #967 --- home-manager/home-manager | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home-manager/home-manager b/home-manager/home-manager index 6d0f52fb..d5a4c4f4 100644 --- a/home-manager/home-manager +++ b/home-manager/home-manager @@ -93,14 +93,14 @@ function doBuildAttr() { nix build \ -f "" \ $extraArgs \ - ${PASSTHROUGH_OPTS[*]} \ + "${PASSTHROUGH_OPTS[@]}" \ --argstr confPath "$HOME_MANAGER_CONFIG" \ --argstr confAttr "$HOME_MANAGER_CONFIG_ATTRIBUTE" else nix-build \ "" \ $extraArgs \ - ${PASSTHROUGH_OPTS[*]} \ + "${PASSTHROUGH_OPTS[@]}" \ --argstr confPath "$HOME_MANAGER_CONFIG" \ --argstr confAttr "$HOME_MANAGER_CONFIG_ATTRIBUTE" fi