mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
* Check exit status of pipe elements.
This commit is contained in:
parent
b8aaef5e4e
commit
d6db574ec1
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,8 @@ mkdir $out
|
||||||
dst=$out/$(basename $path).nar.bz2
|
dst=$out/$(basename $path).nar.bz2
|
||||||
@bindir@/nix-store --dump "$path" | @bzip2@ > $dst
|
@bindir@/nix-store --dump "$path" | @bzip2@ > $dst
|
||||||
|
|
||||||
|
if test "${PIPESTATUS[0]}" != "0"; then exit 1; fi
|
||||||
|
|
||||||
md5=$(md5sum -b $dst | cut -c1-32)
|
md5=$(md5sum -b $dst | cut -c1-32)
|
||||||
if test $? != 0; then exit 1; fi
|
if test $? != 0; then exit 1; fi
|
||||||
echo $md5 > $out/md5
|
echo $md5 > $out/md5
|
||||||
|
|
Loading…
Reference in a new issue