From baa0e4c8100acc6368896fc56047a463507b4c07 Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Fri, 16 Dec 2016 02:02:24 +0000 Subject: [PATCH] Add mkdir if not the target dir does not exist --- get_docker-base.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/get_docker-base.sh b/get_docker-base.sh index c417ca12c111..ff2bdeaff02b 100755 --- a/get_docker-base.sh +++ b/get_docker-base.sh @@ -16,5 +16,6 @@ BASE_URL="https://sonicstorage.blob.core.windows.net/packages/docker-base.ea5077 base_image_name=docker-base docker_try_rmi $base_image_name +mkdir -p $TARGET_PATH wget --no-use-server-timestamps -O $TARGET_PATH/$base_image_name.gz "$BASE_URL" docker load < $TARGET_PATH/$base_image_name.gz