From fa1023993563f4c2bfe999e1a52248163538c2fc Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 14 Jun 2026 19:38:38 +0200 Subject: Fix nx script 'builders' argument escape Signed-off-by: Mel --- scripts/nx.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/nx.sh') diff --git a/scripts/nx.sh b/scripts/nx.sh index 245531c..d132bb5 100755 --- a/scripts/nx.sh +++ b/scripts/nx.sh @@ -11,9 +11,9 @@ current_hostname="$(hostname)" run() { echo -ne "* \033[1;33m" - echo "$@" - echo -ne "\033[0m" - $@ + printf '%q ' "$@" + echo -e "\033[0m" + "$@" } error() { @@ -27,7 +27,7 @@ rebuild() { local target="$1" local tool="$2" - run nixos-rebuild --sudo --builders "\"\"" --flake "$config#$target" "$tool" + run nixos-rebuild --sudo --builders "" --flake "$config#$target" "$tool" } flag() { -- cgit 1.4.1