only use nom if we write to a terminal
This commit is contained in:

committed by
Jörg Thalheim

parent
58e72c6ec2
commit
df522e787f
2
disko
2
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 "$@"
|
||||
|
@@ -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 "$@"
|
||||
|
Reference in New Issue
Block a user