From df522e787fdffc4f32ed3e1fca9ed0968a384d62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 20 May 2025 13:57:12 +0200 Subject: [PATCH] only use nom if we write to a terminal --- disko | 2 +- disko-install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/disko b/disko index ab17146..06e2160 100755 --- a/disko +++ b/disko @@ -127,7 +127,7 @@ fi echo "disko version $DISKO_VERSION" nixBuild() { - if command -v nom-build > /dev/null; then + if command -v nom-build > /dev/null && [ -t 1 ]; then nom-build "$@" else nix-build "$@" diff --git a/disko-install b/disko-install index 2c5596e..80715bc 100755 --- a/disko-install +++ b/disko-install @@ -164,7 +164,7 @@ cleanupMountPoint() { } nixBuild() { - if command -v nom-build > /dev/null; then + if command -v nom-build > /dev/null && [ -t 1 ]; then nom-build "$@" else nix-build "$@"