mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
hack/make.sh: use bash internal $PWD
Signed-off-by: Jörg Thalheim <joerg@higgsboson.tk>
This commit is contained in:
parent
da697dbed6
commit
6f812a4ec1
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ export DOCKER_PKG='github.com/docker/docker'
|
|||
|
||||
# We're a nice, sexy, little shell script, and people might try to run us;
|
||||
# but really, they shouldn't. We want to be in a container!
|
||||
if [ "$(pwd)" != "/go/src/$DOCKER_PKG" ] || [ -z "$DOCKER_CROSSPLATFORMS" ]; then
|
||||
if [ "$PWD" != "/go/src/$DOCKER_PKG" ] || [ -z "$DOCKER_CROSSPLATFORMS" ]; then
|
||||
{
|
||||
echo "# WARNING! I don't seem to be running in the Docker container."
|
||||
echo "# The result of this command might be an incorrect build, and will not be"
|
||||
|
@ -82,7 +82,7 @@ if [ "$AUTO_GOPATH" ]; then
|
|||
rm -rf .gopath
|
||||
mkdir -p .gopath/src/"$(dirname "${DOCKER_PKG}")"
|
||||
ln -sf ../../../.. .gopath/src/"${DOCKER_PKG}"
|
||||
export GOPATH="$(pwd)/.gopath:$(pwd)/vendor"
|
||||
export GOPATH="${PWD}/.gopath:${PWD}/vendor"
|
||||
fi
|
||||
|
||||
if [ ! "$GOPATH" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue