diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-03-20 21:05:08 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-20 21:05:08 +0100 |
commit | 12e46121dbb8ddb131ba49b5d07b34d25100b502 (patch) | |
tree | aa34a5ffa051bd9826859e11f031b2ce1f0c0ac7 /bin/reproducible_build.sh | |
parent | c93e42cacf2fde1148e0a4e6a7d1e3a4e4d1def2 (diff) | |
download | jenkins.debian.net-12e46121dbb8ddb131ba49b5d07b34d25100b502.tar.xz |
reproducible: improve language and shell robustness
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-x | bin/reproducible_build.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index e281e896..e3f4a8ad 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -24,15 +24,15 @@ create_results_dirs() { } cleanup_all() { - if [ "$SAVE_ARTIFACTS" == 1 ] ; then + if [ "$SAVE_ARTIFACTS" = "1" ] ; then local hash=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w5 | head -1) local ARTIFACTS="artifacts/r00t-me/tmp-${hash}/${SUITE}/${PACKAGE}" mkdir -p "/var/lib/jenkins/userContent/$ARTIFACTS" cp -r $TMPDIR/* "/var/lib/jenkins/userContent/$ARTIFACTS" echo | tee -a ${RBUILDLOG} - echo "Artifacts from this build are preserved. They will be available for very short time so download them now if you want them." | tee -a ${RBUILDLOG} - echo "You shouldn't trust packages you downloaded from this host, they can contain malware or the worst of your fear, packaged in a debian format." | tee -a ${RBUILDLOG} - echo "If you are not afraid of facing your fears helping the world by investigating reproducible build issues, you can download the artifacts from the following url:" | tee -a ${RBUILDLOG} + echo "Artifacts from this build are preserved. They will be available for 72h only, so download them now if you want them." | tee -a ${RBUILDLOG} + echo "WARNING: You shouldn't trust packages you downloaded from this host, they can contain malware or the worst of your fears, packaged nicely in debian format." | tee -a ${RBUILDLOG} + echo "If you are not afraid facing your fears while helping the world by investigating reproducible build issues, you can download the artifacts from the following location:" | tee -a ${RBUILDLOG} echo "https://reproducible.debian.net/$ARTIFACTS" | tee -a ${RBUILDLOG} echo | tee -a ${RBUILDLOG} fi |