1
0
Fork 0

removing trailing slash from inputs

This commit is contained in:
Christian Kühnel 2019-10-16 12:06:27 +02:00
parent 8de4cb0e2e
commit 580a6ebae0
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ ROOT_DIR="$(dirname ${DIR})"
# get config options
source "${ROOT_DIR}/k8s_config"
IMAGE_NAME="$1"
IMAGE_NAME="${1%/}"
QUALIFIED_NAME="${GCR_HOSTNAME}/${GCP_PROJECT}/${IMAGE_NAME}"
cd "${DIR}/${IMAGE_NAME}"

View file

@ -16,7 +16,7 @@
set -eux
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
IMAGE_NAME="$1"
IMAGE_NAME="${1%/}"
cd "${DIR}/${IMAGE_NAME}"
docker build -t ${IMAGE_NAME} .