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 "$@"