Move to tmp_dir before checking if dist exists
This commit is contained in:
parent
e514af0814
commit
d944381311
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue