Commit 01f43b9f authored by Holger Levsen's avatar Holger Levsen

reproducible: refactor

parent 2ea8c692
......@@ -74,6 +74,10 @@ else
if [ -z "$SCHROOT_BASE" ]; then
export SCHROOT_BASE=/schroots
fi
if [ ! -d "$SCHROOT_BASE" ]; then
echo "Directory $SCHROOT_BASE does not exist, aborting."
exit 1
fi
# use these settings in the scripts in the (s)chroots too
export SCRIPT_HEADER="#!/bin/bash
if $DEBUG ; then
......
......@@ -49,11 +49,6 @@ if [ "$SUITE" = "experimental" ] ; then
EXTRA_SOURCES[1]="deb-src $MIRROR experimental main"
fi
if [ ! -d "$SCHROOT_BASE" ]; then
echo "Directory $SCHROOT_BASE does not exist, aborting."
exit 1
fi
export SCHROOT_TARGET=$(mktemp -d -p $SCHROOT_BASE/ schroot-install-$TARGET-XXXX)
if [ -z "$SCHROOT_TARGET" ]; then
echo "Could not create a directory to create the chroot in, aborting."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment