* Check exit status of pipe elements.
This commit is contained in:
parent
b8aaef5e4e
commit
d6db574ec1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue