diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-17 09:58:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-17 09:58:50 +0000 |
commit | 1a28d3898bc585a57c14f6e26172ff3b3c43af8f (patch) | |
tree | 4ad55ee7ffb71a509b09730f9f61fa0b09d26e8e | |
parent | a457f7241c22f06451978afdd52cf993e62bd2d3 (diff) | |
download | abuild-1a28d3898bc585a57c14f6e26172ff3b3c43af8f.tar.gz abuild-1a28d3898bc585a57c14f6e26172ff3b3c43af8f.tar.bz2 abuild-1a28d3898bc585a57c14f6e26172ff3b3c43af8f.tar.xz abuild-1a28d3898bc585a57c14f6e26172ff3b3c43af8f.zip |
abuild: abort build if md5 check fails
-rwxr-xr-x | abuild | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -93,7 +93,7 @@ md5check() { if [ "$(echo $source | wc -l)" -ne "$(echo $md5sums | wc -l)" ]; then die "Number of md5sums does not correspond to number of sources" fi - fetch + fetch || return 1 msg "Checking md5sums..." cd "$srcdir" && echo "$md5sums" | md5sum -c } @@ -139,7 +139,7 @@ fetch() { # unpack the sources unpack() { local u - md5check + md5check || return 1 mkdir -p "$srcdir" for u in $source; do local s="$SRCDEST/${u##*/}" # $(basename $s) |