mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 13:41:36 +00:00
hack/make/test-integration-cli: introduce MAKEDIR variable
- every execution of dirname costs time - less repeating Signed-off-by: Jörg Thalheim <joerg@higgsboson.tk>
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ set -e
|
||||
DEST=$1
|
||||
|
||||
if [ -z "$DOCKER_CLIENTONLY" ]; then
|
||||
source "$(dirname "$BASH_SOURCE")/.dockerinit"
|
||||
source "${MAKEDIR}/.dockerinit"
|
||||
|
||||
hash_files "$DEST/dockerinit-$VERSION"
|
||||
else
|
||||
@@ -18,5 +18,5 @@ fi
|
||||
export LDFLAGS_STATIC_DOCKER=''
|
||||
export BUILDFLAGS=( "${BUILDFLAGS[@]/netgo /}" ) # disable netgo, since we don't need it for a dynamic binary
|
||||
export BUILDFLAGS=( "${BUILDFLAGS[@]/static_build /}" ) # we're not building a "static" binary here
|
||||
source "$(dirname "$BASH_SOURCE")/binary"
|
||||
source "${MAKEDIR}/binary"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user