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.
This commit is contained in:
zimbatm 2020-12-02 15:46:45 +01:00
parent c5f2dfc736
commit e1e1000ec2
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7

View File

@ -59,5 +59,5 @@ elif [ -t 1 ]; then
echo "Nix bundle created at $filename."
cp -f "$out" "$filename"
else
cat "$out"
echo "$out"
fi