diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-11-08 11:32:10 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-11-08 11:32:10 +0000 |
commit | d6db574ec127757c05c24f53c71e4116caaa762b (patch) | |
tree | 76f5aad1f8da79dbedff4cbd2081360a7f622bb9 /corepkgs | |
parent | b8aaef5e4e25daa838157c7b3a8165b633901646 (diff) | |
download | guix-d6db574ec127757c05c24f53c71e4116caaa762b.tar.gz |
* Check exit status of pipe elements.
Diffstat (limited to 'corepkgs')
-rw-r--r-- | corepkgs/nar/nar.sh.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/corepkgs/nar/nar.sh.in b/corepkgs/nar/nar.sh.in index 9635d29f4f..11344f7fff 100644 --- a/corepkgs/nar/nar.sh.in +++ b/corepkgs/nar/nar.sh.in @@ -8,6 +8,8 @@ mkdir $out dst=$out/$(basename $path).nar.bz2 @bindir@/nix-store --dump "$path" | @bzip2@ > $dst +if test "${PIPESTATUS[0]}" != "0"; then exit 1; fi + md5=$(md5sum -b $dst | cut -c1-32) if test $? != 0; then exit 1; fi echo $md5 > $out/md5 |