From f23380fe849178c602a7a5017872530db5ccc168 Mon Sep 17 00:00:00 2001 From: Johannes Scheuermann Date: Wed, 27 Apr 2016 08:54:13 +0200 Subject: [PATCH] Add empty string to sed --- cluster/images/hyperkube/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/images/hyperkube/Makefile b/cluster/images/hyperkube/Makefile index 6cce31514dd..6a0ead6e6df 100644 --- a/cluster/images/hyperkube/Makefile +++ b/cluster/images/hyperkube/Makefile @@ -57,13 +57,13 @@ endif ifeq ($(ARCH),amd64) # When building "normally" for amd64, remove the whole line, it has no part in the amd64 image - cd ${TEMP_DIR} && sed -i "/CROSS_BUILD_/d" Dockerfile + cd ${TEMP_DIR} && sed -i "" "/CROSS_BUILD_/d" Dockerfile else # When cross-building, only the placeholder "CROSS_BUILD_" should be removed # Register /usr/bin/qemu-ARCH-static as the handler for ARM binaries in the kernel docker run --rm --privileged multiarch/qemu-user-static:register --reset curl -sSL --retry 5 https://github.com/multiarch/qemu-user-static/releases/download/v2.5.0/x86_64_qemu-${QEMUARCH}-static.tar.xz | tar -xJ -C ${TEMP_DIR} - cd ${TEMP_DIR} && sed -i "s/CROSS_BUILD_//g" Dockerfile + cd ${TEMP_DIR} && sed -i "" "s/CROSS_BUILD_//g" Dockerfile endif docker build -t ${REGISTRY}/hyperkube-${ARCH}:${VERSION} ${TEMP_DIR}