diff options
-rwxr-xr-x | bin/chroot-installation.sh | 2 | ||||
-rwxr-xr-x | bin/chroot-run.sh | 4 | ||||
-rwxr-xr-x | bin/d-i_check_jobs.sh | 8 | ||||
-rwxr-xr-x | bin/d-i_overview.sh | 2 | ||||
-rwxr-xr-x | bin/email2irc.sh | 6 | ||||
-rwxr-xr-x | bin/reproducible_build.sh | 2 | ||||
-rwxr-xr-x | bin/reproducible_html_repo_stats.sh | 2 | ||||
-rwxr-xr-x | bin/reproducible_setup_pbuilder.sh | 2 | ||||
-rwxr-xr-x | bin/schroot-create.sh | 8 |
9 files changed, 18 insertions, 18 deletions
diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh index ccaa4577..6864b0e1 100755 --- a/bin/chroot-installation.sh +++ b/bin/chroot-installation.sh @@ -12,7 +12,7 @@ set -e # $2 = extra component # $3 = upgrade distro -if [ "$1" == "" ] ; then +if [ "$1" = "" ] ; then echo "need at least one distribution to act on" echo '# $1 = base distro' echo '# $2 = component to test (gnome, kde, xfce, lxce)' diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh index e771cf86..7ce2ad28 100755 --- a/bin/chroot-run.sh +++ b/bin/chroot-run.sh @@ -24,13 +24,13 @@ fi DISTRO="$1" shift -if [ "$1" == "backports" ] ; then +if [ "$1" = "backports" ] ; then BACKPORTS="deb $MIRROR ${DISTRO}-backports main" BACKPORTSSRC="deb-src $MIRROR ${DISTRO}-backports main" shift fi -if [ "$1" == "minimal" ] ; then +if [ "$1" = "minimal" ] ; then MINIMAL=yes BOOTSTRAP_OPTIONS=--variant=minbase shift diff --git a/bin/d-i_check_jobs.sh b/bin/d-i_check_jobs.sh index c40f4e0e..3f372e85 100755 --- a/bin/d-i_check_jobs.sh +++ b/bin/d-i_check_jobs.sh @@ -91,12 +91,12 @@ for DIRECTORY in * ; do continue ;; esac for i in $IGNORE ; do - if [ "$DIRECTORY" == "$i" ] ; then + if [ "$DIRECTORY" = "$i" ] ; then DIRECTORY="" break fi done - if [ "$DIRECTORY" == "" ] ; then + if [ "$DIRECTORY" = "" ] ; then continue else for FORMAT in pdf html ; do @@ -129,12 +129,12 @@ cd po IGNORE="pot README" for DIRECTORY in * ; do for i in $IGNORE ; do - if [ "$DIRECTORY" == "$i" ] ; then + if [ "$DIRECTORY" = "$i" ] ; then DIRECTORY="" break fi done - if [ "$DIRECTORY" == "" ] ; then + if [ "$DIRECTORY" = "" ] ; then continue else for FORMAT in pdf html ; do diff --git a/bin/d-i_overview.sh b/bin/d-i_overview.sh index 493a1458..d65a6bf2 100755 --- a/bin/d-i_overview.sh +++ b/bin/d-i_overview.sh @@ -8,7 +8,7 @@ DEBUG=false common_init "$@" # convert param to variables -if [ "$1" == "" ] ; then +if [ "$1" = "" ] ; then echo "need an Archicture to act on" exit 1 fi diff --git a/bin/email2irc.sh b/bin/email2irc.sh index 25f76fe3..20c0a966 100755 --- a/bin/email2irc.sh +++ b/bin/email2irc.sh @@ -24,7 +24,7 @@ HEADER=true VALID_MAIL=false MY_LINE="" while read line ; do - if [ "$HEADER" == "true" ] ; then + if [ "$HEADER" = "true" ] ; then # check if email header ends if [[ $line =~ ^$ ]] ; then HEADER=false @@ -55,7 +55,7 @@ while read line ; do fi fi # catch first line of email body (to send to IRC later) - if [ "$HEADER" == "false" ] && [ -z "$MY_LINE" ] ; then + if [ "$HEADER" = "false" ] && [ -z "$MY_LINE" ] ; then MY_LINE=$line debug123 "#1" MY_LINE $MY_LINE # if this is a multipart email it comes from the email extension plugin @@ -76,7 +76,7 @@ fi debug123 "#5" MY_LINE $MY_LINE # only send notifications for valid emails -if [ "$VALID_MAIL" == "true" ] ; then +if [ "$VALID_MAIL" = "true" ] ; then echo -e "----------\nvalid email\n-----------" >> $LOGFILE date >> $LOGFILE echo "Job: $JENKINS_JOB" >> $LOGFILE diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index ff78103e..91d0da77 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -107,7 +107,7 @@ call_debbindiff() { echo "." | tee -a ${RBUILDLOG} fi OLD_STATUS=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT status FROM results WHERE package_id='${SRCPKGID}'") - if [ "${OLD_STATUS}" == "reproducible" ]; then + if [ "${OLD_STATUS}" = "reproducible" ]; then MESSAGE="${SRCPACKAGE}: status changed from reproducible -> unreproducible. ${REPRODUCIBLE_URL}/${SRCPACKAGE}" echo "\n$MESSAGE" | tee -a ${RBUILDLOG} #kgb-client --conf /srv/jenkins/kgb/debian-reproducible.conf --relay-msg "$MESSAGE" || true # don't fail the whole job diff --git a/bin/reproducible_html_repo_stats.sh b/bin/reproducible_html_repo_stats.sh index 6dd12b2b..6678c2a9 100755 --- a/bin/reproducible_html_repo_stats.sh +++ b/bin/reproducible_html_repo_stats.sh @@ -76,7 +76,7 @@ for PKG in $SOURCES ; do fi if [ ! -z "$EXPERIMENTAL" ] ; then CEXP="" - if [ "${PKG:0:3}" == "lib" ] ; then + if [ "${PKG:0:3}" = "lib" ] ; then PREFIX=${PKG:0:4} else PREFIX=${PKG:0:1} diff --git a/bin/reproducible_setup_pbuilder.sh b/bin/reproducible_setup_pbuilder.sh index 03ba1696..f86d6e96 100755 --- a/bin/reproducible_setup_pbuilder.sh +++ b/bin/reproducible_setup_pbuilder.sh @@ -86,7 +86,7 @@ setup_pbuilder() { echo "$(date) - creating /var/cache/pbuilder/${NAME}.tgz now..." TMPFILE=$(mktemp) LOG=$(mktemp) - if [ "$SUITE" == "experimental" ] ; then + if [ "$SUITE" = "experimental" ] ; then SUITE=sid PACKAGES="experimental $PACKAGES" fi diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh index 9edb73ea..5448807a 100755 --- a/bin/schroot-create.sh +++ b/bin/schroot-create.sh @@ -24,18 +24,18 @@ shift DISTRO="$1" shift -if [ "$DISTRO" == "experimental" ] ; then +if [ "$DISTRO" = "experimental" ] ; then # experimental cannot be bootstrapped DISTRO=sid EXTRA_PACKAGES="deb $MIRROR experimental main" EXTRA_SOURCES="deb-src $MIRROR experimental main" fi -if [ "$1" == "backports" ] ; then +if [ "$1" = "backports" ] ; then EXTRA_PACKAGES="deb $MIRROR ${DISTRO}-backports main" EXTRA_SOURCES="deb-src $MIRROR ${DISTRO}-backports main" shift -elif [ "$1" == "reproducible" ] ; then +elif [ "$1" = "reproducible" ] ; then EXTRA_PACKAGES="deb http://reproducible.alioth.debian.org/debian/ ./" EXTRA_SOURCES="deb-src http://reproducible.alioth.debian.org/debian/ ./" fi @@ -102,7 +102,7 @@ bootstrap() { echo "${EXTRA_PACKAGES}" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list >/dev/null echo "${EXTRA_SOURCES}" | sudo tee -a $CHROOT_TARGET/etc/apt/sources.list >/dev/null - if [ "$1" == "reproducible" ] ; then + if [ "$1" = "reproducible" ] ; then TMPFILE=$(mktemp -u) add_repokey $CHROOT_TARGET/$TMPFILE sudo chroot $CHROOT_TARGET bash $TMPFILE |