fix(ci): skip root directory creation on legacy FTP
deploy-preland / deploy barbariskatest (push) Failing after 30s
deploy-preland / deploy zoomstage.online (push) Skipped
deploy-preland / deploy zoompixel.online (push) Successful in 28s
deploy-preland / deploy zoompixel.ru (push) Successful in 32s

This commit is contained in:
Panfilov Konstantin committed 2026-10-18 00:53:41 +03:00
1 parent be030f25a0
commit 78b24c91f8
1 file changed
+5 -2
+5 -2
View File
@@ -110,8 +110,11 @@ jobs:
echo "загрузка: $f"
remote_dir=${f%/*}
[ "$remote_dir" = "$f" ] && remote_dir='.'
printf 'mkdir -p %s%s\nput -O %s%s %s\n' \
"${dir:+$dir/}" "$remote_dir" "${dir:+$dir/}" "$remote_dir" "$f" >> "$script"
if [ "$remote_dir" != '.' ]; then
printf 'mkdir -p %s%s\n' "${dir:+$dir/}" "$remote_dir" >> "$script"
fi
printf 'put -O %s%s %s\n' \
"${dir:+$dir/}" "$remote_dir" "$f" >> "$script"
done < files.txt
printf 'bye\n' >> "$script"
lftp -u "$FTP_USER","$FTP_PASS" -e "source $script" "ftp://$FTP_HOST"