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.
commite1e1000ec2a217aa20e8d23ea4a96a2c05b59116
authorzimbatm <zimbatm@zimbatm.com>
dateWed 2 Dec 2020, 15:46 (6 years ago)
parentc5f2dfc
nix-bundle.sh+1−1
@@ -59,5 +59,5 @@ elif [ -t 1 ]; then
5959 echo "Nix bundle created at $filename."
6060 cp -f "$out" "$filename"
6161else
62− cat "$out"
62+ echo "$out"
6363fi