about summary refs log tree commit diff
path: root/tests/nix-channel.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/nix-channel.sh')
-rw-r--r--tests/nix-channel.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/nix-channel.sh b/tests/nix-channel.sh
index 1d7724e93374..4819b57c91c0 100644
--- a/tests/nix-channel.sh
+++ b/tests/nix-channel.sh
@@ -24,7 +24,7 @@ rm -rf $TEST_ROOT/nixexprs
 mkdir -p $TEST_ROOT/nixexprs
 cp config.nix dependencies.nix dependencies.builder*.sh $TEST_ROOT/nixexprs/
 ln -s dependencies.nix $TEST_ROOT/nixexprs/default.nix
-(cd $TEST_ROOT && tar cv nixexprs) | bzip2 > $TEST_ROOT/foo/nixexprs.tar.bz2
+(cd $TEST_ROOT && tar cvf - nixexprs) | bzip2 > $TEST_ROOT/foo/nixexprs.tar.bz2
 
 # Test the update action.
 nix-channel --add file://$TEST_ROOT/foo