From e1e1000ec2a217aa20e8d23ea4a96a2c05b59116 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Wed, 2 Dec 2020 15:46:45 +0100 Subject: [PATCH] nix-bundle: print the output path instead When nix-bundle is invoked without a TTY, output the store path instead of catting the content. This allows more flexibility. --- nix-bundle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-bundle.sh b/nix-bundle.sh index dc4a931..dcc4b05 100755 --- a/nix-bundle.sh +++ b/nix-bundle.sh @@ -59,5 +59,5 @@ elif [ -t 1 ]; then echo "Nix bundle created at $filename." cp -f "$out" "$filename" else - cat "$out" + echo "$out" fi