diff options
Diffstat (limited to 'scripts/nx.sh')
| -rwxr-xr-x | scripts/nx.sh | 8 |
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() { |
