diff options
author | Chaos <haos.engine@gmail.com> | 2015-12-11 15:22:25 +0100 |
---|---|---|
committer | Chaos <haos.engine@gmail.com> | 2015-12-11 15:22:25 +0100 |
commit | 99c848b26239ef33441ba0ecbbbf4ae33b15636b (patch) | |
tree | 0567ab240b85903a49d1adc0e6503bf5fe3fe154 | |
parent | removed unnecessary comments (diff) | |
download | docker-images-99c848b26239ef33441ba0ecbbbf4ae33b15636b.tar.gz docker-images-99c848b26239ef33441ba0ecbbbf4ae33b15636b.tar.bz2 docker-images-99c848b26239ef33441ba0ecbbbf4ae33b15636b.zip |
make if VerifyShaOfStage3 more readable
-rwxr-xr-x | amd64-hardened-nomultilib/build.sh | 7 | ||||
-rwxr-xr-x | amd64-hardened/build.sh | 7 | ||||
-rwxr-xr-x | amd64-nomultilib/build.sh | 7 | ||||
-rwxr-xr-x | amd64/build.sh | 7 | ||||
-rwxr-xr-x | x86/build.sh | 7 |
5 files changed, 30 insertions, 5 deletions
diff --git a/amd64-hardened-nomultilib/build.sh b/amd64-hardened-nomultilib/build.sh index cbe178b..ea64118 100755 --- a/amd64-hardened-nomultilib/build.sh +++ b/amd64-hardened-nomultilib/build.sh @@ -22,7 +22,12 @@ cp /bin/busybox . echo "Downloading and extracting ${stage3path}..." wget -q -c "${dist}/${stage3path}" "${dist}/${stage3path}.DIGESTS" -if VerifyShaOfStage3 $stage3 "${stage3}.DIGESTS"; then echo "DIGEST sum is okey"; else echo "DIGEST sum is NOT okey"; return 1; fi +if VerifyShaOfStage3 $stage3 "${stage3}.DIGESTS"; then + echo "DIGEST sum is okey"; +else + echo "DIGEST sum is NOT okey"; + return 1; +fi bunzip2 -c ${stage3} | tar --exclude "./etc/hosts" --exclude "./sys/*" -xf - /newWorldOrder/busybox rm -f $stage3 diff --git a/amd64-hardened/build.sh b/amd64-hardened/build.sh index cbe178b..ea64118 100755 --- a/amd64-hardened/build.sh +++ b/amd64-hardened/build.sh @@ -22,7 +22,12 @@ cp /bin/busybox . echo "Downloading and extracting ${stage3path}..." wget -q -c "${dist}/${stage3path}" "${dist}/${stage3path}.DIGESTS" -if VerifyShaOfStage3 $stage3 "${stage3}.DIGESTS"; then echo "DIGEST sum is okey"; else echo "DIGEST sum is NOT okey"; return 1; fi +if VerifyShaOfStage3 $stage3 "${stage3}.DIGESTS"; then + echo "DIGEST sum is okey"; +else + echo "DIGEST sum is NOT okey"; + return 1; +fi bunzip2 -c ${stage3} | tar --exclude "./etc/hosts" --exclude "./sys/*" -xf - /newWorldOrder/busybox rm -f $stage3 diff --git a/amd64-nomultilib/build.sh b/amd64-nomultilib/build.sh index cbe178b..ea64118 100755 --- a/amd64-nomultilib/build.sh +++ b/amd64-nomultilib/build.sh @@ -22,7 +22,12 @@ cp /bin/busybox . echo "Downloading and extracting ${stage3path}..." wget -q -c "${dist}/${stage3path}" "${dist}/${stage3path}.DIGESTS" -if VerifyShaOfStage3 $stage3 "${stage3}.DIGESTS"; then echo "DIGEST sum is okey"; else echo "DIGEST sum is NOT okey"; return 1; fi +if VerifyShaOfStage3 $stage3 "${stage3}.DIGESTS"; then + echo "DIGEST sum is okey"; +else + echo "DIGEST sum is NOT okey"; + return 1; +fi bunzip2 -c ${stage3} | tar --exclude "./etc/hosts" --exclude "./sys/*" -xf - /newWorldOrder/busybox rm -f $stage3 diff --git a/amd64/build.sh b/amd64/build.sh index cbe178b..ea64118 100755 --- a/amd64/build.sh +++ b/amd64/build.sh @@ -22,7 +22,12 @@ cp /bin/busybox . echo "Downloading and extracting ${stage3path}..." wget -q -c "${dist}/${stage3path}" "${dist}/${stage3path}.DIGESTS" -if VerifyShaOfStage3 $stage3 "${stage3}.DIGESTS"; then echo "DIGEST sum is okey"; else echo "DIGEST sum is NOT okey"; return 1; fi +if VerifyShaOfStage3 $stage3 "${stage3}.DIGESTS"; then + echo "DIGEST sum is okey"; +else + echo "DIGEST sum is NOT okey"; + return 1; +fi bunzip2 -c ${stage3} | tar --exclude "./etc/hosts" --exclude "./sys/*" -xf - /newWorldOrder/busybox rm -f $stage3 diff --git a/x86/build.sh b/x86/build.sh index 6841875..4c23847 100755 --- a/x86/build.sh +++ b/x86/build.sh @@ -23,7 +23,12 @@ cp /bin/busybox . echo "Downloading and extracting ${stage3path}..." wget -q -c "${dist}/${stage3path}" "${dist}/${stage3path}.DIGESTS" -if VerifyShaOfStage3 $stage3 "${stage3}.DIGESTS"; then echo "DIGEST sum is okey"; else echo "DIGEST sum is NOT okey"; return 1; fi +if VerifyShaOfStage3 $stage3 "${stage3}.DIGESTS"; then + echo "DIGEST sum is okey"; +else + echo "DIGEST sum is NOT okey"; + return 1; +fi bunzip2 -c ${stage3} | tar --exclude "./etc/hosts" --exclude "./sys/*" -xf - /newWorldOrder/busybox rm -f $stage3 |