mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
only use nom if we write to a terminal
This commit is contained in:
1 parent
58e72c6ec2
commit
df522e787f
2 files changed
+2
-2
No files matched your search
@@ -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 "$@"
|
||||
|
||||
+1
-1
@@ -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