Move to tmp_dir before checking if dist exists

This commit is contained in:
Florine W. Dekker 2022-11-21 22:39:08 +01:00
parent e514af0814
commit d944381311
Signed by: FWDekker
GPG Key ID: D3DCFAA8A4560BE0
1 changed files with 1 additions and 0 deletions

View File

@ -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."