Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Make calls to mktemp compatible with mac (#291)
Browse files Browse the repository at this point in the history
Signed-off-by: David Peraza <dperaza@redhat.com>
  • Loading branch information
dperaza4dustbit authored Sep 10, 2024
1 parent 68daa44 commit e38dd9e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ci/toolchain_manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function usage {

function use_tmp_dir {
# create a temporary direction
f=$(mktemp --directory /tmp/toolchain.XXXX)
f=$(mktemp -d /tmp/toolchain.XXXX)
cd "${f}"
}

Expand Down
2 changes: 1 addition & 1 deletion e2e/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ push-images:
.PHONY: deploy-operator
deploy-operator:
(\
f=$$(mktemp --directory /tmp/workspaces-config.XXXXX) && \
f=$$(mktemp -d /tmp/workspaces-config.XXXXX) && \
cp -r "../hack" "../operator" "../server" "$$f" && \
cd "$$f/operator" && \
( \
Expand Down
2 changes: 1 addition & 1 deletion hack/workspaces_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

export QUAY_NAMESPACE=${QUAY_NAMESPACE:-konflux-workspaces}

f=$(mktemp --directory /tmp/workspaces-demo.XXXX)
f=$(mktemp -d /tmp/workspaces-demo.XXXX)

cp -r hack/ operator/ e2e/ server/ "${f}"
cd "${f}"
Expand Down
2 changes: 1 addition & 1 deletion server/hack/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [[ -z "${TOOLCHAIN_HOST}" ]]; then
fi

# prepare temporary folder
f=$(mktemp --directory /tmp/workspaces-rest.XXXXX)
f=$(mktemp -d /tmp/workspaces-rest.XXXXX)
cp -r "${ROOT_DIR}/server/config" "${f}/config"
cd "${f}/config/default"

Expand Down

0 comments on commit e38dd9e

Please sign in to comment.