summary refs log tree commit diff
path: root/scripts/nx.sh
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-06-14 19:38:38 +0200
committerMel <mel@rnrd.eu>2026-06-14 19:38:38 +0200
commitfa1023993563f4c2bfe999e1a52248163538c2fc (patch)
treec3bc77405a344238a0a08c1e1b7ae1a03e9a9d45 /scripts/nx.sh
parent90f020809ac65a306070e3077f62458e8b97690d (diff)
downloadminerals-fa1023993563f4c2bfe999e1a52248163538c2fc.tar.zst
minerals-fa1023993563f4c2bfe999e1a52248163538c2fc.zip
Fix nx script 'builders' argument escape
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'scripts/nx.sh')
-rwxr-xr-xscripts/nx.sh8
1 files changed, 4 insertions, 4 deletions
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() {