Skip to content

Commit

Permalink
Fix cd in run-excalidraw.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
realazthat committed May 13, 2024
1 parent c92ff51 commit 8fa2ab0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/run-excalidraw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ trap cleanup EXIT

DOCKER_IMAGE_EXISTS=$(docker images -q "${IMAGE_NAME}:${EXCALIDRAW_TAG}" | wc -l)
if [[ "${DOCKER_IMAGE_EXISTS}" -eq 0 ]]; then
OLD_PWD="${PWD}"
cd "${TMP_DIR}"
git clone https://github.com/excalidraw/excalidraw.git
cd excalidraw
git checkout "${EXCALIDRAW_TAG}"
docker build -t "${IMAGE_NAME}:${EXCALIDRAW_TAG}" .
cd "${OLD_PWD}"
fi
docker rm -f "${EXCALIDRAW_INSTANCE_NAME}" || true
docker run -dit --name "${EXCALIDRAW_INSTANCE_NAME}" -p "${EXCALIDRAW_PORT}:80" "${IMAGE_NAME}:${EXCALIDRAW_TAG}"
Expand Down

0 comments on commit 8fa2ab0

Please sign in to comment.