Skip to content

Commit

Permalink
Double quote to prevent globbing
Browse files Browse the repository at this point in the history
  • Loading branch information
hama-25179 committed Mar 1, 2023
1 parent 4fb5152 commit 8a45c80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/setup-calico-autoinstallation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
set -o errexit
set -o nounset

BASE_DIR=$(dirname $0)
BASE_DIR=$(dirname "$0")
CAPI_DIR=${BASE_DIR}/../../cluster-api
TILTD_DIR=${CAPI_DIR}/tilt.d
TILT_FILE=${TILTD_DIR}/calico_tiltfile

# Check and create directories.
[ -d "${CAPI_DIR}" ] && [ ! -d "${TILTD_DIR}" ] && mkdir -p ${TILTD_DIR}
[ -d "${CAPI_DIR}" ] && [ ! -d "${TILTD_DIR}" ] && mkdir -p "${TILTD_DIR}"

# Generate the calico_tiltfile.
cat <<EOF > ${TILT_FILE}
cat <<EOF > "${TILT_FILE}"
# -*- mode: Python -*-
yaml_file = "../../cluster-api-addon-provider-helm/config/samples/calico-cni.yaml"
Expand Down

0 comments on commit 8a45c80

Please sign in to comment.