From d9443813110b3bbc0e2227ef6781a409c0b01fae Mon Sep 17 00:00:00 2001 From: "Florine W. Dekker" Date: Mon, 21 Nov 2022 22:39:08 +0100 Subject: [PATCH] Move to tmp_dir before checking if dist exists --- deploy-static | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy-static b/deploy-static index 6075b7f..bce36cb 100755 --- a/deploy-static +++ b/deploy-static @@ -34,6 +34,7 @@ mkdir -p "$dst_dir" "$tmp_dir" echo "[[ Deploy ]] Cloning repository at '$repo_dir' into '$tmp_dir'." git clone "$repo_dir" "$tmp_dir" +cd "$tmp_dir" || exit if [ ! -d dist/ ]; then echo "[[ Deploy ]] FATAL ERROR: 'dist' directory was not created."