only use nom if we write to a terminal

This commit is contained in:
Jörg Thalheim authored and Jörg Thalheim committed 2025-05-20 12:07:15 +00:00
1 parent 58e72c6ec2
commit df522e787f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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 "$@"