mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Use default mirror from debootstrap when not explicitly provided, and add better target directory naming
This commit is contained in:
parent
4b3354af3f
commit
ab34115b42
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ include='iproute,iputils-ping'
|
|||
|
||||
repo="$1"
|
||||
suite="${2:-$latestSuite}"
|
||||
mirror="${3:-http://ftp.us.debian.org/debian}"
|
||||
mirror="${3:-}" # stick to the default debootstrap mirror if one is not provided
|
||||
|
||||
if [ ! "$repo" ]; then
|
||||
echo >&2 "usage: $0 repo [suite [mirror]]"
|
||||
|
@ -22,7 +22,7 @@ if [ ! "$repo" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
target="/tmp/docker-rootfs-$$-$RANDOM-debian-$suite"
|
||||
target="/tmp/docker-rootfs-debian-$suite-$$-$RANDOM"
|
||||
|
||||
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||||
returnTo="$(pwd -P)"
|
||||
|
|
Loading…
Reference in a new issue