mirror of
https://github.com/nix-community/disko.git
synced 2026-01-12 09:18:33 +01:00
only use nom if we write to a terminal
This commit is contained in:
parent
58e72c6ec2
commit
df522e787f
2 changed files with 2 additions and 2 deletions
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 "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue