diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-02-27 17:16:24 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-02-27 17:16:24 +0100 |
commit | bed2d625561d8ab58625a4a79efc8f47de842da1 (patch) | |
tree | 2e0caf9bdbf6b011f864f4b3f4702b70e987b6c2 /bin/schroot-create.sh | |
parent | 6902d71a925e460ffced79ad475b37352a74f4dc (diff) | |
download | jenkins.debian.net-bed2d625561d8ab58625a4a79efc8f47de842da1.tar.xz |
fix bashisms
Diffstat (limited to 'bin/schroot-create.sh')
-rwxr-xr-x | bin/schroot-create.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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 |